Backend administration in Ruby on Rails

后端 未结 4 1777
盖世英雄少女心
盖世英雄少女心 2020-12-04 05:46

I\'d like to build a real quick and dirty administrative backend for a Ruby on Rails application I have been attached to at the last minute. I\'ve looked at activescaffold a

4条回答
  •  不知归路
    2020-12-04 06:13

    I have used Streamlined pretty extensively.

    To get Streamline working you create your own controllers - so you can actually run it completely apart from the rest of your application, and you can even run it in a separate 'admin' folder and namespace that can be secured with .

    Here is the Customers controller from a recent app:

    class CustomersController < ApplicationController
      layout 'streamlined'
      acts_as_streamlined       
    
      Streamlined.ui_for(Customer) do
        exporters :csv   
        new_submit_button :ajax => false 
        default_order_options :order => "created_at desc"   
        list_columns :name, :email, :mobile, :comments, :action_required_yes_no  
      end
    end
    

提交回复
热议问题