Where to put files that will be read in a Rails app?

Posted by Guilherme on Stack Overflow See other posts from Stack Overflow or by Guilherme
Published on 2010-04-07T15:16:41Z Indexed on 2010/04/07 20:13 UTC
Read the original article Hit count: 295

Filed under:
|
|

I'm developing a Rails application and within that application I developed a Rake task that will read entries from a file and store them into the DB. Producing the code was no problem, but I'd like to know, where do I place the file that is read? Is there a convention for that, if yes, what is it?

I know I could have used the seed.rb file but is it ok, by the standards, to load and read a file from there?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rails