[Rails] Re: Add a "filter" on the ERB <%= ... %>
Michael Pavling wrote:
> Does that make sense?
It does make sense, and this is a process that I am currently working
through. My example was just a single extract from the application,
though, and there are many of these scattered all over the code.
So what I really wants is a quick-fix that makes the presentation-code
"work" until I've fixed the errors the Right Way(tm).
For now I've resorted to
class NilClass
def method_missing(method_name, *args)
''
end
end
That works - if not pretty, then at least it holds my view code together
while I fix it.
- Carsten
--
Posted via http://www.ruby-forum.com/.
--
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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home