Search code examples
ruby-on-railsrubyrake

Ruby-on-Rails : how to display all "rake:about" data inside a Rails view?


I would like to display the output of "rake:about" inside a Rails view.

Or all equivalent data into a view.

Is it feasible ?


Solution

  • You can use Backticks to execute system command. So inside view it would look like:

    <%= `rake about` %>