ruby-on-rails-2
Rails Flash.now not working
I have a view from which I make an ajax request to the contro开发者_StackOverflow社区ller and after the action is successfully completed I initialize the flash.now[:notice]. But after the control goes[详细]
2023-03-29 18:20 分类:问答ActiveRecord returns model objects with un-initialized associations
I have a simple join query which in some cases returns ActiveRecord objects with uninitialized associations, and I try to understand why. (My setup: rails 2.3.8 with MySQL)[详细]
2023-03-28 16:28 分类:问答setting cookies directly in Rails2
Motivation: I\'m solving problems that are caused by strange/mutated/odd/perverse cookies in ruby-on-rails. I have captured some of these evil cookies and I can use cookie manager on firefox to recrea[详细]
2023-03-28 14:04 分类:问答Why isn't 'logger.debug false' printing anything?
I\'m having a problem with a boolean expression and when I did a logger.debug I had strange results, so I simplified my logging code to the following and was surprised not to see any \'false\' being p[详细]
2023-03-28 09:10 分类:问答Not recognized by the 'identify' command error while using validates_each
Below is my validations for image content type which works fine. validates_attachment_size :icon, :less_than => MAX_SIZE.megabytes, :message => \"Max size is 1 mb\"[详细]
2023-03-27 09:12 分类:问答What should a Rails 3.x noob know about maintaining a Rails 2.3 app?
I recently learned Rails (Rails 3 to be specific) and got a small project maintaining a Rails 2.开发者_C百科3.2 app.[详细]
2023-03-26 23:42 分类:问答Create a script or task to modify database
I need to create 开发者_StackOverflow中文版a script that imports data from a file system source. How do I do that?[详细]
2023-03-26 20:35 分类:问答can't activate test-unit (= 1.2.3), already activated test-unit-2.3.0
Recently I added rspec test in my rails 2.3.5 but I wasn\'t able to run simply rake -T command. Then I found Rails 3 - If I'm using RSpec, can I just del开发者_高级运维ete the 'test' folde[详细]
2023-03-25 22:26 分类:问答unable to load rspec generator in rails 2.3.5
i am working on rails 2.3.5 where i want to us Rspec for testing purpose. I have installed rspec gem but not able to list rspec in generator\'s list. I am referring https://github.com/rspec/rspec-rail[详细]
2023-03-24 15:30 分类:问答How to map a custom rack hander in a rails 2.3 application (dav4rack specifically)?
I am trying to use dav4rack in my rails 2.3.8 application. I am creating a custom config.ru file to load rails, and am using Passenger. The standard rails config.ru file loads just fine:[详细]
2023-03-23 10:08 分类:问答