Does anyone have any idea why annotate does not work anymore in rails 3.1 ? When trying to run it with :
I have two user models, first is from remote database as legacy and for internal company pu开发者_如何学Crposes. (Employee logins). Second is our project for public registration and sign in but I want
Ok so I have a help开发者_高级运维er method in the application controller: def run_test(test_name)
In my sample project for the previous rails versions I would access the images as <%= image_tag(product.image_url, :class => \'list_image\') %>
I usually have my admin area on a subdomain with the following routing: scope :module => \"admin\", :as => \"admin\", :constraints => { :subdomain => \"admin\" } do
Cancan is working fine when user\'s are logged in. But when a user is a \"guest\" I would like them to be able to see some photos, but not those where the Photo\'s parent Post has a restriction employ
I am atempting to dinamically create form elements given a certain AJAX request. This is my setup: View:
I am upgrading from rails 3.0.7 to 3.1 and am having trouble getting my tests to pass. The problem occurs when I try to use a stubbed active resource object in a factory.
Is it possible to do an association extension on a belongs_to relation? I have tried to do it using a module but keep being told that the method I\'m calling is private:
In a VPS I have Postgres installed and 2 Rails projects. Both are running on production mode and connecting PG as different users.