Jordon Bedwell wrote in post #1073894:
> On Thursday, 30 August 2012 05:13:57 UTC-5, Ruby-Forum.com User wrote:
>>
>>
>>     end
>>
>>
>> Right now when user login he will redirect to index method and
>> index.html.erb data display to him with application.html.erb layout.
>>
>> So how I will display the theme instead of application layout.
>>
>
>
> Store all the CSS files and image files in hierarchical (except for the
> stylesheets) order inside of the assets folders and then store their
> preference in the session and use `stylesheet_link_tag(session[:theme]
> ||
> :default)` but you might add in an extra check to make sure the theme
> exists first I guess to prevent simple tampering.


Thx Jordon

But where should I keep my theme1/index.html file

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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 https://groups.google.com/groups/opt_out.


Reply via email to