On Apr 19, 4:40 pm, Nicholas Wieland <[email protected]>
wrote:
>
> What I don't understand where I should include the main application, how to 
> load rails and when (I can require ActionController in the first file but it 
> doesn't feel right ...) and what to put inside hte various initialization 
> files.
> If someone knows of a plugin with specs that I can copy I would be very glad. 
> It's not that I don't find them, but every plugin I find does things in a 
> different way, so it's not entirely clear which way is the best one.
>

Well the rails framework (and constituent parts) will already have
been loaded at the point  your init.rb is run. requiring config/
environment again at that point probably doesn't do anything at all.
For a gem plugin if my memory is correct you'll want to ensure rails/
init.rb exists (and do your rails specific setup in there).

Fred
> TIA,
>   ngw
>
> --
> 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 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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