Simple Admin Functionality in Rails 3

I want to add administrator functionality to my webapp with Rails version 3. I want something very simple, there will be only one administrator, this functionality does not need a username field, just a password field. I do not know how to do this, can you help me?

Thanks!

+4
source share
2 answers

You can use scaffolding to create form code and controller code.

http://guides.rubyonrails.org/getting_started.html#getting-up-and-running-quickly-with-scaffolding

and here the question arises: Backend management in Ruby on Rails

Hth

+2
source

Check out this Railscast for a simple HTTP HTTP check :

# products_controller.rb before_filter :authenticate protected def authenticate authenticate_or_request_with_http_basic do |username, password| username == "foo" && password == "bar" end end 

Just!

+6
source

All Articles