Did you ever get a solution on this? I'm encountering the same thing and trying to work it out.
On Tuesday, February 21, 2012 8:32:04 PM UTC-8, xop wrote: > > Hi, > > I have a set of help pages that I want to put in the asset pipeline, > because I want to compile them once > and apply some erb changes to them. > > I have them in a directory structure like this: > app/assets/helppages > and have only one file, named h22.html.erb > > When I try to precompile the assets, I get this error: > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > rake assets:precompile > rake aborted! > undefined local variable or method `params' for #<#<Class:0x9590e58>: > 0x95f2478> > (in /home//web/app/assets/helppages/h22.html.erb) > > Tasks: TOP => assets:precompile:primary > (See full trace by running task with --trace) > rake aborted! > > Tasks: TOP => assets:precompile > (See full trace by running task with --trace) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > My h22.html.erb file has this in it: > <html> > <head> > <%= stylesheet_link_tag "stylesheet", :media => "all" %> > </head> > <body> > > Any ideas what is going wrong? > > Thanks! > David > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ZU9Edgo4mSgJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

