Displaying 4 results from an estimated 4 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...
2025 Mar 19
1
structure(<primitive function>, ...) is sticky: a bug, or should it be an error?
Hello.
I just (re-)discovered that structure(sum, init = 100) is "sticky",
i.e. it stays with base::sum(). Here's an minimal example:
$ R --vanilla --quiet
> void <- structure(sum, some_attr = TRUE)
> str(sum)
function (..., na.rm = FALSE)
- attr(*, "some_attr")= logi TRUE
>From my very basic troubleshooting, it looks like this is happening
for primitive functions. I think I understand that this comes down to
primitive functions cannot be copied and baseenv() being sp...
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