search for: login_control

Displaying 20 results from an estimated 37 matches for "login_control".

2006 Apr 06
9
How to get Form values in RubyOnRails
Hi I want the FORM values on my controller.i.e. I want the values of login_loginname(Form variable) and login_password(Form variable) on login_controller.rb How can i do that? Table Name is: logins Model:: Login.rb Controller:: login_controller.rb Below is my test form loginname password Hoping for reply Regards Parikshit
2005 Jun 01
3
Mixing Controllers
I have a login section that is part of my view from my sign_up controller. Validating my user happens through a login_controller. Now if validation is good it is ok because I have a redirect in my login_controller. But if the login is not successful I have to go back to my view from my sign_up controller. Using redirect makes no sense because my @user_login object is lost and so are errors. How would you sugge...
2007 Dec 03
2
before_filter application => exclude some other controllers
...login'' belongs to other controller. I can put those before_filter in every control that will need it, but all of my controls need it, so I prefer to put it in the application_controller. thanks, raimon ps. this doesn''t work before_filter (:session_expiry => :except ) {|login_controller|} -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public...
2006 Apr 13
8
Controller paths
...ruby script/generate controller Admin::product add remove ruby script/generate controller Admin::user add remove ruby script/generate controller Login login logout the directory structure will be app/controllers/admin/product_controller.rb app/controllers/admin/user_controller.rb app/controllers/login_controller.rb Now suppose I need some links with link_to from the product and user controller to the login controller. Does I need to use some paths like link_to "Logout", :controller => "../login", :action => "logout" or link_to "Logout", :controller =&gt...
2006 Aug 10
4
1.1.5 Upgrade and config.load_path not working
...h(RAILS_ROOT), "rails_shared/controllers") ] config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/helpers") ] config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/lib") ] And within rails_shared/controllers I have a login_controller. When I hit the stie I see this: Routing Error Recognition failed for "/login/login_form" I had previously tried to use controller_paths but that had never worked for me. Anyone have any ideas? Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbe...
2007 Jul 18
3
Getting the session variables after a redirect_to
Hi! I set some session variables on a login_controller and i want to access them after a redirect_to (:controller => "auditor", action => "check"). The problem is that the session variable are comming empty in the auditor view!! I tough that session variables last trought all controllers...iam wrong? Please tell me. -- Po...
2006 Jul 25
5
webrick server slow or does not connect
hi, In login_controller.rb when I do the fallowing code it works fine before_filter :authorize, :except => :login but I want to do the fallowing when creating the user so the authorization is not checked before_filter :authorize, :except => :login, :except => :create_user but when I do this webrick server a...
2006 Jul 17
10
getting the user name
Hi I am new to ruby and trying to obtain the user name in the login index.rhtml where I could display "You have logged in [user name]" How could I do this? I have been trying different options after reading the ruby manual but still throw an error. please help -- Posted via http://www.ruby-forum.com/.
2006 Jul 24
3
Question about layout
...displayed properly on all views? I mean some divs are displayed wrong or without layout at all... let''s say login.rhtml has layout on its own and now it works ( exactly this same as project.rhtml which is layout for the whole project... ) but when I have this layout "project" in login_controller it does not work ( it is from app.rb ) So why is it so? That some views are not displaying layout correctly at all or just partialy ? Thanks a million Lukasz -- Posted via http://www.ruby-forum.com/.
2005 Jan 19
1
Problem with ActiveRecordStore
I''m having an issue using the ActiveRecordStore for sessions with Rails 0.9.4.1. When I setup the session object during login I get the following stack trace: IndexError in Login#auth string not matched /app/controllers/login_controller.rb:26:in `auth'' gems/gems/actionpack-1.3.1/lib/action_controller/base.rb:596:in `send'' gems/gems/actionpack-1.3.1/lib/action_controller/base.rb:596:in `perform_action_without_filters'' gems/gems/actionpack-1.3.1/lib/action_controller/filters.rb:294:in `perform_action_...
2007 Mar 12
0
Undefined method: hashed_password ?
...t/../config/.. Application Trace | Framework Trace | Full Trace C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/ activerecord-1.15.2/lib/active_record/base.rb:1858:in `method_missing'' #{RAILS_ROOT}/app/models/user.rb:40:in `password='' #{RAILS_ROOT}/app/controllers/login_controller.rb:38:in `new'' #{RAILS_ROOT}/app/controllers/login_controller.rb:38:in `add_user'' Request Parameters: {"user"=>{"name"=>"al", "password_confirmation"=>"cl", "password"=>"bl"}, "commit"...
2006 Apr 07
3
Howto set a global parameter
Hi, In my login_controller I get the usename of the person logging in. @username = @user.name puts " DEBUG: #{@username} just logged in\n" # This works But @username seems empty when accessed from numbers_controller.rb , how to I set it to be accessible global? Or at least move the content o...
2007 Jan 19
2
route issue after update to 1.2.1
...or options [2007-01-18 21:39:31] INFO WEBrick 1.3.1 [2007-01-18 21:39:31] INFO ruby 1.8.5 (2006-12-04) [i386-linux] [2007-01-18 21:39:31] INFO WEBrick::HTTPServer#start: pid=6792 port=3000 Failed on first connect...(first line in log/development.log) Expected script/../config/../app/controllers/login_controller.rb to define LoginController First 2 lines in app/controllers/login_controller.rb... # contains the basic information to maintain ''users'', ''rights'' and ''roles'' class LoginController < ApplicationController First route in ''config...
2012 May 01
1
uninitialized constant LoginController in Ruby
...la'' This is my application_controller.rb class ApplicationController < ActionController::Base # protect_from_forgery before_filter :parse_facebook_cookies def parse_facebook_cookies @facebook_cookies = Koala::Facebook::OAuth.new.get_user_info_from_cookie(cookies) end end This is my login_controller.rb class LoginController < ApplicationController def index graph = Koala::Facebook::GraphAPI.new(@facebook_cookies["access_token"]) @likes = graph.get_connections("me", "likes") end I am using Rails 3 and the error I am getting is this: uninitialized...
2006 Jun 05
5
Controller-wide instance variable
Is it possible to declare an instance variable in a controller that is available to every action without defining the variable in every action? -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
6
Simply Getting Post Params
...to the login section in the Agile Web Development with Rails book, the model takes the username, email_address and password (which is hashed before_create()) from the form found in the add_user view. It also makes join_dt = Time.now() in the model. There is an associated add_user action in the login_controller that passes the params to User.new() when a new user is created. My question is that I want the password to be verified and entered twice to ensure the user types the correct password. To do this I thought of adding a password_field("validate_pass","pass") to the form in...
2008 Dec 20
3
IMAP_Authenticatable Problem
...wing up in the logs. Does anyone have any idea what could be causing this or how to fix it? Thanks, Pete NoMethodError (undefined method `disconnect'' for nil:NilClass): /vendor/plugins/imap_authenticatable/lib/imap_authenticatable.rb:52:in `authenticate'' /app/controllers/login_controller.rb:13:in `login'' /usr/lib/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `send'' /usr/lib/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `perform_action_without_filters'' /usr/lib/gems/1.8/gems/actionpack-1.13.3/lib/act...
2006 Mar 13
2
Engines with InstantRails
I''ve recently started playing with InstantRails 1.0 and am now wanting to experiment with the Login and active RBAC engines but having trouble getting them to install. I''ve checked the following but can''t find any info on how to get it to work. http://rails-engines.org/wiki/pages/Engines+plugin I''ve also tried the following:
2006 Feb 15
8
Agile book - getting confusing error
...'' undefined method `hashed_password='' for #<User:0xb7911324> ... /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1498:in `method_missing'' #{RAILS_ROOT}/app/models/user.rb:12:in `before_create'' ./script/../config/../app/controllers/login_controller.rb:8:in `add_user'' ... Request Parameters: {"user"=>{"name"=>"Craig White", "login"=>"craig", "password"=>"test"}} OK... My user.rb includes... require "digest/sha1" class User < ActiveReco...
2006 Jan 30
5
Functional tests and dealing with login before_filter
Hi all, I''m curious as to how you do functional testing on the controllers if, within the ApplicationController, I have a before_filter :authorize, :except => :login, where the private authorize method checks for session[:user]. I can''t do "post :login", because that method is in a different controller. I tried setting session[:user] directly in the setup