Displaying 5 results from an estimated 5 matches similar to: "save has-many associations"
2010 Aug 10
3
ActiveRecord::UnknownAttributeError: unknown attribute: <script type
Has anyone seen this happening to their apps?
I''m starting to get errors like this come across from one of my apps:
ActiveRecord::UnknownAttributeError: unknown attribute: <script type
The parameters being sent are:
{"user"=>
{"email_confirmation"=>"someone-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org",
2009 May 03
1
Localizing attributes when using I18n
Currently I''m developing a multilingual app on rails 2.2. I liked very
much the idea of Xavier Defrang to provide a locale-aware accessor for
the fields that needs a translation: http://defrang.com/articles/2005/12/02/playing-with-rails-i18n
I modified code a little to make it work with rails 2.2:
def self.localize(*attribute_names)
attribute_names.each do |attribute_name|
2009 May 01
0
Graticule / acts_as_geocodable error?
Has anyone encountered this error using Graticule &
acts_as_geocodable?
ActiveRecord::UnknownAttributeError (unknown attribute: precision):
(__DELEGATION__):2:in `__send__''
(__DELEGATION__):2:in `with_scope''
app/models/listing.rb:113:in `advanced_find''
...
Here is line 113 in listing.rb:
published.find(:all,
:origin => zip_code,
:within =>
2009 Apr 12
0
rails 2.3 nested forms with has_many through checkboxes
I was wondering if anyone knew of a way to combine the new nested
forms in rails 2.3 with a has_many through relationship via
checkboxes. Basically I have a page model, a page_category model and
a category_items join table. Pages have many page categories through
category items. The category_items table is polymorphic so i can use
it for other models who need categories (maybe this is
2010 Sep 21
25
Working in install acts_as_commentable, On create, error: "unknown attribute: book_id"
Hello, I''m working to install the acts_as_commentable plugin on my
Rails 3 app.
After adding "acts_as_commentable" to my book model, I then added a
comment form on my book show view:
<% form_for(@comment) do|f| %>
<%= f.hidden_field :book_id %>
<%= f.label :comment %><br />
<%= f.text_area :comment %>
<%= f.submit "Post