Displaying 6 results from an estimated 6 matches for "rolenames".
Did you mean:
rolename
2010 May 07
1
Apache Tomcat/5.5.23
I have a new instllation of tomcat on centos. My $CATALINA_HOME is
/usr/share/tomcat5 and tomcat is running.
http://localhost:8080 brings up the tomcat page & one of the option is
"Administration". I would like to use this web interface and even give some
of the test webapp users ability to restart tomcat.
According to the home page, users are defined in
2008 Jun 03
1
after_create callback in subclass
I have a User model with a protected method defined:
def set_role(rolename)
role = Role.find_by_rolename(rolename)
permission = Permission.new
permission.role = role
permission.user = self
permission.save(false)
end
and a subclass with:
after_create set_role(''client'')
This always fails for me with the error:
undefined method `set_role''
2009 Jan 27
2
Login form_tag with select_tag option
Hi all,
In the application i develop, a sophisticated login system is required.
Being a newbie in Ruby, i''m not comfortable with the select tag in the
form tag.
My requirement:
2 tables - User(LoginName, Password, RoleId...) and Role(RoleId,
RoleName...)
View - RoleNames to be loaded in the drop down box and On submit, RoleId
to be passed to controller for authentication.
My Code Snippet:
#Controller
if request.post? and params[:login]
@user = User.new(params[:login])
validUser = User.find(:first,:conditions => ["login_name = ? and
password...
2008 Sep 08
0
uninitialized constant error with restful authentication
I''m trying to set up restful authentication with Rails 2.1.0 on Mac OS X
Leopard, and I had to comment out RAILS_GEM_VERSION in the environment
file to install the plugin from technoweenie. Now I''m trying to follow
along in a tuturial, and I''m stuck on this:
1. $ ruby script/generate scaffold Role rolename:string
2.
2006 Dec 08
19
HABTM join table quirk
I''ve been bringing up a good basica framework for applications at work.
To give decent security I''ve been implementing the Rails Recipie for
Authorization of function calls modeled on the book''s implementation.
(Changes for our environment were added..but are minor.)
Since I initially let Rails create the join table between two data
tables with a HABTM relationship....I
2007 Aug 11
2
Rspec and acl_system2 plugin
Hello,
I''m trying to spec a Rails application using the couple
restful_authentication/acl_system2 plugins.
In my admin layout, I put the following code :
<% restrict_to "admin" do -%>
<ul id="admin-tabs">
<li> /users Users management </li>
</ul>
<% end -%>
Then in my spec file