Displaying 2 results from an estimated 2 matches for "hiiiiiiiii".
Did you mean:
iiiiiiii
2010 Feb 25
9
uninitialized constant UsersController::User
i just created an application to list the primary details of
userbut it is showing an error lik this
"uninitialized constant UsersController::User"
this is my controlller
class UsersController < ApplicationController
puts"hiiiiiiiii"
def index
puts"hiiiiiiiii"
@users = User.find(:all)
puts @users
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @users }
end
end
end
this is my view file
<h1>Users List</h1>
<table>
<tr>
<th&...
2006 Apr 07
0
how we can show the action of different model
hiiiiiiiii
Actually i am doing with one login form.
i verify it with the database value.
def valid
if request.post?
@user = Login.new(params[:login])
end
@logins= Login.find_all
end
now i write in valid.rhtml
"Recipetest/list" %>
************...