Hi guys,
Hi would like to use a "custom" frontend in the way it's described in the
API documentation :
*frontend (**global local)
> *ActiveScaffold is skinnable by creating and using different frontends.
> These frontends can package up completely different javascript,
> stylesheets, images, language files, and partials. They are a powerful way
> of potentially changing the entire UI for ActiveScaffold to blend with your
> design. Any partial called for by the ActiveScaffold code that is not
> provided by a frontend will fallback to using the partial from the default
> frontend.
> When more frontends are shipped with ActiveScaffold, or when you have
> written your own, you can decide which frontend to use either globally or
> on a per-controller basis.
> **
> *Examples:*
> config.frontend = :shiny_new_frontend
Does someone know :
- where to put the custom frontend folder in a rails project ?
- how to package assets (stylesheet, javascript and images) in it ?
I did several attempts, but nothing works.
I've a folder named *custom_frontend, *in that folder I've a folder views
containing a list.html.erb file (.../custom_frontend/views/list.html.erb
In my ApplicationControler I added the line :
> config.frontend = :custom_fronted
I put my custom_frontend directory in the following directories of my Rails
app (successively) without results :
- /app/frontends/
- /vendor/plugins/active_scaffold-3.2.2/frontends/ (rails
2.x way)
- /lib/active_scaffold-3.2.2/frontends/
(rails 3.2.x way)
When I say it doesn't work, I mean that for the list.html.erb, rails keeps
loading the default one.
Thanks in advance for your answers and suggestions.
Mic
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/activescaffold/-/LDjRKTOJ42EJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.