See ActionView::ViewPaths::ClassMethods#prepend_view_path.
class ProjectsController < ApplicationController
prepend_view_path 'app/views/mycustomfolder'
...
More Related Contents:
- do..end vs curly braces for blocks in Ruby
- How to get a random number in Ruby
- ActiveRecord: size vs count
- Connecting Rails 3.1 with Multiple Databases
- In Ruby on Rails, to extend the String class, where should the code be put in?
- Rails 3: Get Random Record
- incompatible character encodings: ASCII-8BIT and UTF-8
- STI, one controller
- How to get a query string from a URL in Rails
- Rails 3 disabling session cookies
- How to get a Date from date_select or select_date in Rails?
- counter_cache with has_many :through
- Ruby on Rails Best practices – Big Controller vs Small Controller
- How can I specify a local gem in my Gemfile?
- Paginating an Array in Ruby with will_paginate
- What is the right way to override a setter method in Ruby on Rails?
- Convert HTML to word file ?
- Rails Model, View, Controller, and Helper: what goes where?
- Convert UTC to local time in Rails 3
- How to define action with simple form for?
- Ruby: problem installing EventMachine under Windows 7
- Ruby on Rails Callback, what is difference between :before_save and :before_create?
- Ruby on Rails 3 howto make ‘OR’ condition
- Adding foreign key to a rails model
- Rails 3 – Speed up Console Loading Time
- Why is Rspec saying “Failure/Error: Unable to find matching line from backtrace”?
- Rails catch-all/globbing routes
- Rails devise: user_signed_in? not working
- Always getting 401 Unauthorized with new install of Rails + Devise
- Customizing Devise error messages in Rails 3?