similar to: problems with authentication -- restrict certain actions to certain users

Displaying 20 results from an estimated 6000 matches similar to: "problems with authentication -- restrict certain actions to certain users"

2005 Mar 06
3
permission error in rake''s clone_structure_to_test
Hello, When I try to run "rake clone_structure_to_test" on my project, I get the following errors: $ rake clone_structure_to_test (in /home/www/cedscreening) psql:db/development_structure.sql:8: ERROR: permission denied to set session authorization psql:db/development_structure.sql:16: ERROR: permission denied for schema public psql:db/development_structure.sql:34: NOTICE: CREATE
2006 Feb 20
6
LoginGenerator - multiple user types...
I have been looking at the LoginGenerator gem. Looks great and can be easily modified. However in my app I have two places where people can login, one is for in my case "employees" the other is for "users". They are seperate tables in my database and have many different fields. I have an admin area located at ./sysadmin/ where only "employees" can login, they
2009 Jun 05
6
rails 2.3.2
Hi all, I am using rails v.2.3.2 and if I put following line to my ApplicationController: include LoginSystem and I moved my login_system.rb to lib folder: module LoginSystem protected def is_logged_in? @logged_in_user = User.find(session[:user]) if session[:user] end def logged_in_user return @logged_in_user if is_logged_in? end def logged_in_user=(user) if
2005 Mar 06
3
question about testing
Ok, so now I''m learning about testing. After a few initial hiccups, I''ve got my tests written nicely and all the assertions are passing. But I just have one question about doing tests in a loop. In my setup, I''m using the login generator to protect ''sensitive'' actions, while some actions are public. So I''ve got this line in my setup method:
2005 Feb 26
2
Any documentation for routes?
I''m having a hard time setting up routes. So far what I have is that accessing /photos/view/YYYY-MM-DD correctly accesses the photo stored for that date, but I''d like to be able to access this as simply "/YYYY-MM-DD" My first guess of: map.connect '':year-:month-:day'', :controller => ''photos'', :action =>
2005 Mar 04
24
Rails speed?
Hi -- (First time posting to the list...) I''m trying out Rails on my Mac (OS X Panther, 1.6 G5). It seems... kinda slow? I''ve even run it with FastCGI and the response time is still painfully slow. Is this just me? Is mod_ruby any better than FastCGI? Or is it rails? Thanks in advance! -- joshua
2006 Jan 29
3
SHLG and lib dir
Slowly figuring out how to get my SaltedHashLoginGenerator stuff working. The wiki page says to put "before_filter :login_required" in the user (my "user" is "member") controller or in ApplicationController. However, wherever I put it I get NoMethodError. The rest of the SHLG stuff seems to be working... or at least I could get to the signup page, register, and
2005 Mar 05
3
routes inconsistency?
Hello, As a small excercise in learning rails, I''ve been porting a very simple website from SSI to rails (yep, a bunch of static files that were previously served with a tiny bit of SSI magic are now served by a database-backed rails, it''s total overkill, I know). Part of the reason is that I''m trying to move from apache to lighttpd, and lighttpd''s SSI for
2006 Feb 01
1
LoginGenerator - Firefox Problem -The page isn''t redirecting properly
Hi, HAs anyone come across this issue in Firefox; I''ve just installed LoginGenerator and I''m allowing cookies to be set yet any all to http://apollo:3000/account/login results in the error; Firefox has detected that the server is redirecting the request for this address in a way that will never complete. Any Clues?? Eric.
2006 Jan 08
9
URL/Site structure
Greetings, I''m fairly noob with rails and making my first DB driven site with it. I''m using the scaffold generator to develop the admin side of my site (admin_controller) I have three sections that I want to have the administrator edit, and I want to call these from the admin controller that has a layout with navigation to these three sections. When using the scaffold
2005 Mar 09
16
rails on low memory vps
Anyone got any tips for running Rails (w/ either webrick or lighttpd/fcgi) on a VPS with a pretty small amount of memory (like 64MB memory and 64MB swap). Thanks, Joe
2006 Aug 02
12
Authenticate with an IP address : LoginGenerator
Is there a way to authenticate with an IP address? I''m using the LoginGenerator, but would like to bypass the "before_filter :login_required " if a user is in a correct IP range... Anyone know of a solution? Thanks! -- Posted via http://www.ruby-forum.com/.
2005 Aug 17
4
Stop an action ?
Hi. I am working on a generic authentification system for rails (more complete than the login generator). The way it works is you call a method inside your action, passing the domain as a parameter (domains are like a group of users with specific rights). For that purpose, I need to exit the action inside this method because it redirects to a login page if that person isn''t
2005 Mar 10
11
Default Values
Where in the application would you suggest I set default values that are read for every action and in some cases changed and somecases not. Basically on some pages I am getting the <title> from the DB and if not I want to put a default one up. Any suggestions?
2005 Mar 08
1
Moving to production?
I poked around a bit in config/environments, and it looks like moving to production turns on caching. What exactly is it caching here? It''s an option in ActionController... does that mean that there''s now a cache of rendered pages, thus avoiding processing & database accesses for certain pages? The database content of the pages I''m working on now change very
2005 Mar 10
7
Order of Processing
It seems odd to me that the layout is processesed after the view. When I set a variable inside the view it does not have an impact on the layout file. But when I set it in the controller it does. Is this the way it works or is it possible that I am doing something wrong?
2006 Apr 11
4
wrong number of arguments (2 for 1)
Hi, Im having trouble figuring out how to query my database in ruby and i''m hoping someone can help me out. I''d like to find all my departments that match a permalink passed from the url. The department must also match a particular category, also passed through the url. I have written the following code. But unfortunatley I get an error "wrong number of arguments (2 for
2005 Mar 05
3
some macosX icons for RoR
http://ohericord.free.fr/MOCKUP/
2005 Mar 07
1
0.10.1
So, do I really want to upgrade to 0.10.1? Seems like a lot of people are having issues. Joe
2005 Mar 09
1
Newbies perceptions and questions
Hi, I found rails on internet when I looking for some ''better'' way how to create web applications. I read tutorial 4 days on rails and I have 3 questions 1. How speed is it? (very slow on my testing machine, but that is P100 with 64Mb RAM, what''s enough for php or rhtml :)) 2. How does it work... I create table categories, I create model and controller category, but