similar to: Can ActiveRecord::Base.connection.schema_search_path be set per process?

Displaying 20 results from an estimated 100 matches similar to: "Can ActiveRecord::Base.connection.schema_search_path be set per process?"

2006 Jun 16
0
Getting an error on options_groups_from_collection_for_select
Hi, I''m very new with Ruby and Rails. I have read Agile Web Development with Rails and was trying to create a grouped selection list by following his example on page 359. My helper looks like this: module LoginHelper AssocOption = Struct.new(:code_name, :display_name) class AssocType attr_reader :type_name, :options def initialize(name) @type_name = name
2006 Apr 22
0
Connecting to existing postgreSQL database in Win32
I''ve been runnning Perl under Apache for a while but have decided to try using Ruby-on-Rails. My current database is postgreSQL 8.1. I have no problem connecting to it using Perl or PHP 5. However, I''m obviously missing something ''cos no matter what I do I cannot connect to the database from RoR. I have followed all of the instructions I could find and when I start
2010 Aug 20
0
Problem with db:create
My ruby app always created the databases on postgres just fine, but, a days ago, I''ve tried to create a new project and when I execute the command "db:create:all" i got the following error: Couldn''t create database for {"encoding"=>"unicode", "username"=> "-my username-", "adapter"=>"postgresql",
2011 Sep 13
4
Prepared statements and postgreSQL schemas
Hi guys. I''m using a postgreSQL with multiple schemas. To change between schemas I use the ''SET schema TO ...'' statement. That works ok in rails 3.0. Rails 3.1 uses prepared statements and does not take into account the ''schema_search_path''. This is a big problem because the statement is prepared once and then the same prepared statement is executed
2005 Oct 28
3
PostgreSQL. Multiply schemas in one database. How to?
Hi all. I am using PostgreSQL in my current project and I have couple of questions on this topic. Previously I have used 3 databases for project. i.e. megaproject_development, megaproject_test and megaproject_development. But I don''t like this variant because of ''rake dump_db_structure'' writes a lot of PostgreSQL specific data for structure file (operators, functions,
2006 Mar 30
2
database.yml and Dreamhost
I am unable to connect to my databases. Here is the error I am getting: MysqlError (Can''t connect to local MySQL server through socket ''/var/run/mysqld/mysqld.sock'' (2)): Here is my database.yml: # MySQL (default setup). Versions 4.1 and 5.0 are recommended. # # Get the fast C bindings: # gem install mysql # (on OS X: gem install mysql --
2013 Oct 18
3
before_action - performing an action to prevent
class WebsocketController < WebsocketRails::BaseController private def authenticate? unless current_user.token == message[:token] current_redirect_to ''home/index'' false # that here we need to do to stop the further execution? end end end class WorldsController < WebsocketController before_action :authenticate? def index
2008 Apr 03
1
Re: help needed running visual FoxPro 6 application
Tenho o wine instalado no Fedora 6 e quero rodar o VFP, mas quando executo o VFP aparece "erro ao conectar com SQL. No nodo texto aparece "err:CoGetClass {854d7-bc3d-11d0-b421-00a0c90f9dc4} not registred. O que eu posso fazer? cid:image001.jpg at 01C8625E.FF0BF240 Reginaldo Mendes da Cruz Analista de Suporte e Sistemas Fone:(011) 5503-4206 <mailto:reginaldo at
2006 Aug 03
1
strange before_filter error. is this a bug i have found?
... before_filter :find_regression_test def find_regression_test @regression_test=RegressionTest.find(8) end .... The above seems like perfectly normal before_filter syntax, but it gives this error. Aldo is no application trace, just a framework trace: Any idea what is wrong? NoMethodError in Regression testsController#modify_regression_test private method `equal?''
2006 Jul 03
13
Remote Postgres is driving me crazy!
Hi guys, I need your help. Here is my database.yml: development: adapter: postgresql database: db username: username password: mypassword # Connect on a TCP socket. Omitted by default since the client uses a # domain socket that doesn''t need configuration. Windows does not have # domain sockets, so uncomment these lines. host: 192.168.22.1 (this is a remote ip in
2005 Dec 01
0
symlink and 0.14.3
Hi! I have a little problem with 0.14.3. I followed the http://wiki.rubyonrails.com/rails/pages/HowtoUseSymLinksToGraftRailsOntoYourWebsite but it''s not work. My rails directory is /home/boci/ujautoszalon and I symlinked the public dir to /home/httpd/htdocs/ujautoszalon2, but it''s not find the database.yml file. Here is the whole log:
2008 Nov 16
3
chisq.test with simulate.p.value=TRUE (PR#13292)
Full_Name: Reginaldo Constantino Version: 2.8.0 OS: Ubuntu Hardy (32 bit, kernel 2.6.24) Submission from: (NULL) (189.61.88.2) For many tables, chisq.test with simulate.p.value=TRUE gives a p value that is obviously incorrect and inversely proportional to the number of replicates: > data(HairEyeColor) > x <- margin.table(HairEyeColor, c(1, 2)) >
2007 Apr 09
2
Errno::EACCES in Controller / Permission denied
Hello, I did a seemingly smooth install of ferret, but when I try to add it to my model, I get an error. My info: My rails site: shelikes (a restaurant review site) My controller: Display My model: Review My only line of code added for ferret is: class Review < ActiveRecord::Base acts_as_ferret ...( more stuff not related )... end Below is the error information. Any thoughts on how
2014 Mar 26
0
Heroku | Rails 4 | Ruby 2.0 - send_file not presenting file for download in the browser
Hello all, I am have an app that is hosted on heroku (rails 4 | ruby 2.0) that I am using paperclip-dropbox to upload attachments to a blog. I have created a download link for people who read the blog to be able to download the attachments but I am not able to get the file to actually download via the browser. I am curious if anyone knows what could be the issue. My process is I download the
2019 Sep 15
0
Migrating Samba NT4 Domain to Samba AD
W dniu 2019-09-15 o?20:38, Rowland penny via samba pisze: > On 15/09/2019 19:08, Bart?omiej Solarz-Nies?uchowski wrote: >> W dniu 2019-09-15 o?18:32, Rowland penny via samba pisze: >>> On 15/09/2019 16:44, Bart?omiej Solarz-Nies?uchowski wrote: >>>> I have some questions: >>>> >>>> I not currently understood - bind9 connected to AD server must
2006 Jul 27
9
CalendarHelper
Has anyone had any luck using the CalendarHelper plugin at http://wiki.rubyonrails.com/rails/pages/CalendarHelper recently? I''m scratching my head over the following error when I look at any page in my application: NameError in CalendarController#index undefined local variable or method `date_format'' for #<CalendarController:0x24ccd4c> RAILS_ROOT:
2006 Aug 02
0
Errno::ENXIO (Device not configured) when using net/https from rails
Cross posting this to the rails list in case it might be rails specific. I really have no clue on this one. OS is Freebsd 6.1. I have the following code that creates a https connection from within a rails controller. Works fine except that if it doesn''t get called for a few hours it starts throwing an exception until I restart rails (apache1.3 + scgi). I wonder if something here
2019 Sep 15
0
Migrating Samba NT4 Domain to Samba AD
W dniu 2019-09-15 o?18:32, Rowland penny via samba pisze: > On 15/09/2019 16:44, Bart?omiej Solarz-Nies?uchowski wrote: >> I have some questions: >> >> I not currently understood - bind9 connected to AD server must be >> used by the LAN workstations - or only via AD server? >> >> currently workstations are pointed to the another DNS server than AD >>
2006 Mar 31
14
[newbi] Create a Model
Hello All, Yesterday i put RoR with Locomotive. I am very happy :p. So I follow this tuto (http://developer.apple.com/tools/rubyonrails.html). I used Sqlite. my database.yml # MySQL (default setup). Versions 4.1 and 5.0 are recommended. # # Get the fast C bindings: # gem install mysql # (on OS X: gem install mysql -- --include=/usr/local/lib) # And be sure to use new-style password
2007 Jun 19
2
sequence name prefix
In Postgres, I use different database schemas for each application, by declaring, e.g.: class ApplicationController < ActionController::Base ActiveRecord::Base.table_name_prefix = "keywords." end I assumed that the sequence names were also prefixed with the database schema names, e.g. keywords.things_id_seq But Rails 1.2.3 assumes the sequence is *NOT* in the same schema as the