Fallback format in rails -


For my CM I want to be able to easily add new topics, I think just a new type for new The theme was to add (hence application.theme1.erb will work).

But for 99% of the subjects I do not want to change ideas, not all of them properly.

Is there no way that the rail should return to HTML if the themed view is not present?

I am very new to rail, so this is not a correct answer:

You can try to use the query string parameter as part of the route described here:

Then eventually something like this will work

  map.connect ': Subject /: controller /: action /: id'  

As I understand, the subject will be available as the ultimate [: subject] in the controller. If no topic has been specified, then you may have to add another route such as

  map.connect '/: controller /: action /: id'  

The i18n guide is described for some similar locals:

Hope that helps.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -