Ruby on Rails
Wednesday, August 29, 2012
Hi,
I am using devise for my user management. I am using angular js for my UI. I have folder structure like this for html: app/assets/partials/
I have added index.html.erb file over it. Now when I am going to access like this: <%= current_user %> I am getting error like: NameError (undefined local variable or method `current_user' for #<#<Class:0xa06acc0>:0xc2db160>.
What to do if I want to use this variable in html files resides in assets pipeline?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment