So you do a script/generate extension whatever and you get a full directory replete with views and even a routes.rb and everything. Which seems to be a normal Rails extension. So I just did a HelloWorld, but they did an example with scaffold. Either way works. The interesting thing is that your routes end up available in Rails just like normal. So:
map.connect 'helloWorld', :controller => 'root', :action => 'hello'
refers to the real url helloWorld, even though it's in its own mini routes.rb. So it's all normal and 100% Rails.
And then you... follow the instructions and finish, and it works perfectly. Not much of a blog entry, I know, but perhaps my optimism about Radiant has gotten the better of me.
No comments:
Post a Comment