On Thursday, February 6, 2014 12:58:35 AM UTC, Ruby-Forum.com User wrote:
>
> Frederick 
>
> Could you please elaborate "helper :currency?" Can you give an example? 
>
>
class FooController < ApplicationController
  helper :currency # <- CurrencyHelper module is included in views rendered 
by this controller
end
 
Fred

> Thanks 
> Rod 
>
> Frederick Cheung wrote in post #1135734: 
> > On Wednesday, February 5, 2014 7:29:41 PM UTC, Ruby-Forum.com User 
> > wrote: 
> >> 
> >> Frederick, 
> >> 
> >> Thanks. I am glad you agree with me. By the way, do you recommend 
> >> setting this option to false as good practice on every fresh project? 
> >> Looks like your idea solves the issue, but of course, will force you to 
> >> dump stuff like you said, in application.rb. 
> >> 
> >> 
> > I always do. It doesn't force you to dump stuff in 
> > application_helper.rb, 
> > it just makes that the path of least resistance. 
> > 
> > 
> >> 
> >> def blabla 
> >> end 
> >> 
> >> 
> > Personally I'd rather write 
> > 
> > helper :currency 
> > 
> > in application controller (or whatever is the appropriate subset of 
> > controllers). 
> > 
> > Fred 
>
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/7135dcd9-c027-453f-9024-e2926f3d1490%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to