On Sep 9, 8:46 am, lobatt <[email protected]> wrote:
>
> I wonder how can i make number_with_delimtier availabe to my code?
> while i am using ApplicationController without any require or inlucde
> directive...

helpers are available to views only (hence the name view helpers) (at
least not unless you start playing some games which you seem to say
you don't want to do see http://snippets.dzone.com/posts/show/1799 for
example)

Fred


> On Sep 9, 3:36 pm, Frederick Cheung <[email protected]>
> wrote:
>
>
>
> > On Sep 9, 4:41 am, lobatt <[email protected]> wrote:
>
> > > Hi all:
> > >        i am using gem to insall rails 2.3.3 and using $rails myapp to
> > > generate my application, but strangely i can't use the number_helper
> > >       below is my env:
>
> > Where are you calling it from ?
>
> > Fred
>
> > > export RUBY_HOME=$HOME/ruby
> > > export GEM_HOME=$HOME/gems
> > > export RUBYLIB=$RUBY_HOME/lib:$RUBY_HOME/lib/ruby:$RUBY_HOME/lib/
> > > site_ruby/1.8
> > > export PATH=$HOME/gems/bin:$HOME/ruby/bin:
>
> > > and:
> > > $ locate number_helper.rb
> > > /home/lobatt/gems/gems/actionpack-2.3.3/lib/action_view/helpers/
> > > number_helper.rb
>
> > > and i didn't modify the file under config dir except database.yml.
> > > Isn't actionpack included in rails projects by default? how can i get
> > > number_with_delimiter() work?
>
> > > Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to