We'll respond shortly.
Update 07/11/2008: A fix has been committed for the
belongs_toassociation declared on an ActiveRecord class, but the table does not have a foreign key for that relationship. Within a session, everything appears normal. The child object will still be saved, the parent object can even be reloaded. But by the next session, the child object is in the database, but cannot be retrieved.
named_scope, adding a
:joinsoption will “mix-in” all of the attributes from that join table into your retrieved object, potentially overwriting any colliding attributes (including
id… ouch!). There was consensus that this was a valuable feature, when used “properly”. Adding
:selectoption can avoid this, or use
named_routes.jsfile usually has not been generated, and application crashes at startup. Solution: we created a rake task to generate the
named_routes.jsfile and run that as part of our deploy process.
“Why did my JS
respond_toblock suddenly start rendering the HTML template instead of the RJS template?”
Rails 2.0.2; controller, action,
respond_to block all work as expected. Just wrong file gets rendered. They fixed the problem by adding an explicit call to
render but this should not be necessary. Suggestion is to move from the template.rhtml naming scheme to template.mime-type.render-engine scheme and see if it is fixed.