See this line in your config/environment.rb
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{RAILS_ROOT}/extras )
Manisha Tripathy escribió:
> Hi friends,
>
> I need to create some additional ruby files for some other functions
> inside a rails project. So I created another folder and put those files
> inside it.In this case one file needs to call the classes in other
> files, so I used
> require 'filename'
>
> My files run well when I put them in a Ruby project. But the same codes
> do not work when I put them inside a folder in a Rails Project.
> The problem is with "require" keyword.Error is
>
> `require': no such file to load --filename (LoadError)
>
> I cannot understand why this happens.Can anyone provide some help in
> this regards? I will be really thankful.
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---