I need a sort of mini cms function in my app, allow a user to alter the
content of the site (nothin too sophisticated). Just want them to be
able to alter "fragments" of content on the pages.
I do it like this and I know it's not the best way, can someone tell me
a better way (a simple example if possible), I believe I need something
in my model to allow me to stop rpeating myself and stop all the typing
!....
I need a sort of mini cms function in my app, allow a user to
alter the content of the site (nothin too sophisticated). Just
want them to be able to alter "fragments" of content on the pages.
I do it like this and I know it's not the best way, can
someone tell me a better way (a simple example if possible),
I believe I need something in my model to allow me to stop
rpeating myself and stop all the typing !....
Using ActionController::Base#action_name in a before_filter
can be your friend.
I need a sort of mini cms function in my app, allow a user to
alter the content of the site (nothin too sophisticated). Just
want them to be able to alter "fragments" of content on the pages.
I do it like this and I know it's not the best way, can
someone tell me a better way (a simple example if possible),
I believe I need something in my model to allow me to stop
rpeating myself and stop all the typing !....
Using ActionController::Base#action_name in a before_filter
can be your friend.
you might also want to have a look at comatose - it doesn’t do exactly what you are asking for out of the box, but it is a nice plugin cms to add to a site.
http://code.google.com/p/comatose-plugin/