Is there any particular reason you CAN'T upgrade to 3.1 and use the "rails plugin new blah --full" command to its, uh, full effects?
Otherwise, you can take what it generates and change the routes to draw onto Rails.application.routes instead of the engine class. In this case you don't mount the engine, but the engine grafts itself onto the application. In addition, isolate_namespace won't work in 3.0. I think this is super important for developing a correct engine. It isolates everything from an engine into its own namespace, preventing it from interfering with the application unless you do something Really Fucking Stupid. Isolating the namespace is way cool. Anyway, it's totes possible on 3.0, just a lot more painful than 3.1. As an example, 3.1 includes a task to copy over migrations, where 3.0 doesn't. I'll be releasing something on Wed/Thu NYC time that'll *guide* (HINT) you on the process of developing an engine. GLHF, Ryan Bigg On 13/02/2012, at 22:11, Leonardo Borges <[email protected]> wrote: > Hey guys, > > I found myself in the need to create a rails engine and noticed there's not a > wealth of information about it. > > I did find a couple of links however: > > - > http://railsindirection.blogspot.com.au/2010/05/rails-3-templates-and-engines.html > - > http://blog.dynamic50.com/2010/02/22/rails-3-0-mount-multiple-apps-as-engines/ > - > http://coding.smashingmagazine.com/2011/06/23/a-guide-to-starting-your-own-rails-engine-gem/ > > They all seem to accomplish the same thing in the end, but through different > paths. > > Is there a rails way to get started that I'm missing? Or a "preferred" way, > that's covered in any of the previous blog posts? > > Cheers, > Leonardo Borges > www.leonardoborges.com > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" 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/rails-oceania?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" 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/rails-oceania?hl=en.
