Put the routes.rb stuff in [yourapplication]_extension.rb You can extend ActiveRecord, just like in Rails. Rails is embedded in Radiant, so it works pretty much the same. Put the testing stuff in /rspec, test as usual.
There's a lot of good documentation on using Radiant extensions, via the wiki http://wiki.github.com/radiant/radiant/how-to-create-an-extension That's about moving a scaffolded rails app to radiant, but you can extend almost any part of Radiant. On Mon, Jan 11, 2010 at 1:50 AM, Asfand Yar Qazi <ayq...@gmail.com> wrote: > Hi, > > More questions to converting a Rails app to a Radiant extension. > > Currently, in Rails 2.3.5, it is almost possible to mount a Rails app > as a plugin and have all the routes, helpers, etc. just work. > > If I am going to convert my Rails app to a Radiant extension, I need > to have the following issues resolved. > > - I have all my text used in view, flash messages and emails in the > I18n file 'en.yml', containing lots of ActiveRecord and other > translations as well. How do I move these to the Radiant app? > > - I have several routes in my current app (in config/routes.rb). How > do I move these to the Radiant app? If I simply move them into the > Radiant app, won't upgrading the Radiant app become more difficult? > > - Will mailers just work? > > - Things like RSpec specs and Selenium tests are currently run by > doing a 'rake spec' or 'rake test:acceptance' , but they rely on the > Rails app - if I dismantle the Rails app, how will I cause these to > still run? Again, if I simply move them into the Radiant app, won't > upgrading the Radiant app become more difficult? > > Any hints to help me speed up the transition would be appreciated, as > I believe I have already under-quoted the client because of guilt that > I should have developed the app in a Radiant extension from the > beginning since I knew they would eventually want a CMS anyway. > > Thanks > _______________________________________________ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant