Ruby on Rails
Sunday, July 5, 2015
End it with .first
On Sunday, July 5, 2015 at 10:54:45 AM UTC-4, Padmahas Bn wrote:
-- On Sunday, July 5, 2015 at 10:54:45 AM UTC-4, Padmahas Bn wrote:
Before I respond, would you please verify the fields in your table User, specfically roleid.Elizabeth,I checked the fields in the database. They exist and as I've posted in the question, the code <% rolename = Role.where(id: user.roleid).pluck(:role_name) %> working but returns an array.Thank you
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/b4d7aea0-5dcd-4d3b-b175-0a1cf7be84f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment