search for: some_attr

Displaying 3 results from an estimated 3 matches for "some_attr".

Did you mean: mode_attr
2013 Jan 20
6
preload_app = true causing - ActiveModel::MissingAttributeError: missing attribute: some_attr
Greetings, I''m getting this - ActiveModel::MissingAttributeError: missing attribute: some_attr - on a random basis under a unicorn server, running rails 3.2 and ruby 1.9.3 As the case of the last poster in the following thread - https://github.com/rails/rails/issues/1906 - I too am able to resolve this issue by settingpreload_app to false. However, this is not the behaviour I want to have...
2006 Mar 08
2
Multilingual Validation Messages
Hi all, I have a mutilingual app and want to customize the validation error messasges. I cannot override them as I need them in more than one language, so I have done the following: validates_presence_of :some_attr, :message => _(''should not be blank'') I am using gettext to translate the message. This works in development mode, but not in production, even after a server restart and the killing of all fcgi processes, i.e. a completely fresh server. Why is that so and how can I remedy...
2008 Aug 28
12
Rendering User attributes in XML
Let''s say an app has a User, and a User has many friends. Also, let''s say the app authentication was built on the restful_authentication plugin, and we have email and password in the Users table. The friends controller index might look like this; # GET /users/1/friends # GET /users/1/friends.xml def index @users = @user.friends respond_to do |format| format.html