Ruby on Rails
Monday, March 31, 2014
Hello people,
I am developing an app with Rails 4.0.x and I have a strange bug in its view. Say I have a partial like this
%p= @bject,name # would work perfectly
= render @object.friends # It won't fetch this relation
%p= @object,name # It would say can't find name for nil class
For some reason the above stuff happens. However in the rails console, all would work fine. Kinda confused.
Would be great if any one could throw light on this. Don' know if this is a Rails bug where state of instance variable gets forgotten after some time.
-----
Regards
Karthikeyan A K
-- I am developing an app with Rails 4.0.x and I have a strange bug in its view. Say I have a partial like this
%p= @bject,name # would work perfectly
= render @object.friends # It won't fetch this relation
%p= @object,name # It would say can't find name for nil class
For some reason the above stuff happens. However in the rails console, all would work fine. Kinda confused.
Would be great if any one could throw light on this. Don' know if this is a Rails bug where state of instance variable gets forgotten after some time.
-----
Regards
Karthikeyan A K
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1405a3bb-1f4d-4c77-9628-2b7f887a7655%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment