Fred:
 Thanks for your reply, i call it from my controller, like this:
class Visitor::UserAgentStatsController < ApplicationController
  def index
    VisitorUserAgentStats.find(:all)
    number_with_delimiter(record.user_agent)
    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @graph}
    end
  end

I wonder how can i make number_with_delimtier availabe to my code?
while i am using ApplicationController without any require or inlucde
directive...
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