Closed trisulnsm closed 11 years ago
Hello, Vivek. You can do something like this in your controller:
before 'blog/first-blog.html' do
instead render('blog/first-blog/post.html.textile')
end
You can use Ruby to glob your directory and generate these routes automatically of course.
I have been trying to find a solution to this problem for couple of days now, without luck. Pardon me if it is something obvious,.
Say my input directory structure is
and I want my output to be
instead of this
How can I go about doing this ? I think instead is used for input replacement. Anything similar for output replacement ?
Appreciate any help.