I don''t know of a tutorial that can do this, but here is how I would
approach the problem:
For changing colours, you need to change the CSS. You should probably
break your CSS into (at least) two CSS files. One containing the
normal CSS, and one containing what the user is permitted to change.
Then you need to generate CSS files on the fly based on the user''s
input. You could probably have a template file, and then do a gsub to
fill in all the colours (or other options that can be changed). Then
save this generated CSS file in public/stylesheets/
custom_for_user_id.css (or whatever make sense).
Then in you view layout you can do
stylesheet_link_tag("custom_for_#{user.id}").
If you really want to let users make the layout any "way that they
want", then you should probably just let them upload their own CSS. I
think typo has some code that allows the user to edit the CSS directly
from the web UI. You might want to look into that if your users need
that much freedom.
HTH
Shandy Nantz wrote:> I have to build this webpage where the user can select the color, add a
> picture, overall make the layout the way that they want. Can anyone
> point me to a tutorial and give me some suggestions on how to get
> started on this, I am unsure how to proceed. Thanks,
>
> -S
> --
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---