User Style

I’d like to have a way to allow users to pick a theme for their own page
in a site. The theme would only be for their profile page though. Has
anyone done this, or know of a good way to go about it?

Thanks.

Hi Mike,

Just store the CSS selection in a session variable:
in the controller:

session[:css] = bla_bla

in the view:

<%= <%= stylesheet_link_tag session[:css] %>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs