Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Admin::User < ActiveRecord::Base
- end
- class Admin::UsersController < ApplicationController
- def index
- @user = User.create(:name => 'test', :password => 'blabla')
- end
- end
- # views/admin/users/index.html.erb
- <%= @user.name %>
- <%= @user.password %>
Add Comment
Please, Sign In to add comment