[Rails] Re: Access denied for user 'root'@'localhost' (using password: YES) even though i have added in mysq

2012-01-03 Thread Madhusudhan H R
I am running it on windows 2003 VM. Rails versions in 2.3.5. Database is in another server not the same server. Here is the database.yml conf development: adapter: mysql encoding: utf8 database: db username: root password: *** host: 172.16.1.50 port: 3306 Yes the request is throug

[Rails] Access denied for user 'root'@'localhost' (using password: YES) even though i have added in mysql

2012-01-03 Thread Madhusudhan H R
Hi, I am getting the error "Access denied for user 'root'@'localhost' (using password: YES)" in my application. I have granted full permissions for the device in mysql. My applications runs perfectly fine. But if i keep the browser idle for some time and then try to load the page I get the above

[Rails] Re: add_column not working in migration for sqlite3

2011-04-01 Thread Madhusudhan H R
Colin Law wrote in post #990365: > On 1 April 2011 12:06, Madhusudhan H R wrote: >> Hello, >> >> I developed an app with postgres DB but want to change the DB to >> sqlite3. I changed the database adapter in the database.yml file. When I >> run the migrat

[Rails] add_column not working in migration for sqlite3

2011-04-01 Thread Madhusudhan H R
Hello, I developed an app with postgres DB but want to change the DB to sqlite3. I changed the database adapter in the database.yml file. When I run the migration most of it was successful but add_column was throwing an error "Cannot add a NOT NULL column with default value NULL: ALTER TABLE "rat

[Rails] Implementing a custom dashboard

2010-02-23 Thread Madhusudhan H R
Hello, I want to develop a custom dashboard from a list of modules. The selected modules has to be displayed in the dashboard which can be customised. This may be similar to iGoogle or my Yahoo, where i should be able to close any module and rearrange the modules. Is there any framework which will

[Rails] Re: Getting the top results only by group in a .find stateme

2009-04-09 Thread Madhusudhan H R
Tyl Tan wrote: > This is my table > > model name is bids > > id | bid | keyword > 1 | 2 | orange > 2 | 3 | orange > 3 | 1 | red > 4 | 3 | blue > 5 | 6 | red > > > what i want is the get these the top bidder of each unique keyword in > one .find statement As per my knowledg

[Rails] Re: Routing every request to same action

2009-03-31 Thread Madhusudhan H r
If the requirement is to direct every incoming request for a particular action in a controller then can just have map.connect '*path', :controller=>"your_controller", :action=>"your_action" in the routes.rb file. This will redirect every request to 'your_action' in 'your_controller'. Regards