view-path

How do I add a partial's current folder to the rails view path?

I have a set of partials that are used to update a section of a form depending on the user's choice from a drop-down menu. There are a lot of different choices, so rather than having a view folder like this: app/views/myview/ _choice001.html.erb _choice002.html.erb ... _choice998.html.erb _choice999.html.erb _form.html.erb ...

RoR: View Path in Public Folder

Hi All, In our application we are storing some views (.erb files) in public/custom_themes/{user}/ folders. We have tried to add the path RAILS_ROOT to view_paths and specifying the /custom_themes/{user}/theme.erb in render :layout. In development environment it works fine, but in production it takes ages to find the views. It did find b...