Jordon Bedwell wrote in post #1073902:
> On Thursday, 30 August 2012 05:26:14 UTC-5, Ruby-Forum.com User wrote:
>> >>
>>
>>
>> Thx Jordon
>>
>> But where should I keep my theme1/index.html file
>>
>
> Depending on what it has in it, what I would do is turn it into a
> template
> in the folder of the controller and just add a manual render at the
> bottom
> of the controller that triggers based on the theme.  So if your
> controller
> is UserController and the theme is theme1 then I would make
> theme1/index.html into app/views/user/theme1.erb and then do render
> :theme1
> in the controllers action.  Though at the point I don't know what you
> would
> need mustache/handlebar for unless it's entirely Ajax.

Thx Jordon

Now I'll put theme folder in view section
app/views/themes/theme1
app/views/themes/theme1/index.html
app/views/themes/theme1/style.css
app/views/themes/theme1/image


Is it not possible if I put all these folders in public
public/themes/theme1
public/themes/theme1/index.html
public/themes/theme1/style.css
public/themes/theme1/image

-- 
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