search for: user_control

Displaying 20 results from an estimated 68 matches for "user_control".

Did you mean: ser_control
2006 Jan 16
17
LoginEngine / UserEngine conceptual help
All, I have a small Intranet app I''m trying to get ready for remote access. (I only have 15 or so users for now and I don''t plan to be adding very many more.). I have installed the login engine and it seems to be working as advertized. (Great job!) For my needs I don''t want random people to be able to register and get access to my app, but I will need to register
2008 Sep 11
4
(unknown)
I do not seem to understad what this error is about. Some body help. wrong number of arguments (1 for 2) RAILS_ROOT: C:/INSTAN~1/rails_apps/project/config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/controllers/user_controller.rb:10:in `authenticate'' #{RAILS_ROOT}/app/controllers/user_controller.rb:10:in `process_login'' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this...
2006 Aug 25
0
Re: login sugar
..."=>"Login", "action"=>"login", > "controller"=>"user"} > @params is deprecated! Call params.[] instead of @params.[]. Args: > ["user"] (login at > > /pt/webprops/sysadmin/tst/public/../config/../app/controllers/user_controller.rb:7) > [4;36;1mSQL (0.002785) [0;1m SELECT a.attname, format_type( > a.atttypid, a.atttypmod), d.adsrc, a.attnotnull > FROM pg_attribute a LEFT JOIN pg_attrdef d > ON a.attrelid = d.adrelid AND a.attnum = d.adnum > WHERE a.attrelid = ''users''::regclass > AND a...
2006 Mar 03
1
weird error with login engine
...ithout_callbacks'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:236:in `initialize'' [RAILS_ROOT]/vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb:78:in `initialize'' [RAILS_ROOT]/vendor/plugins/login_engine/app/controllers/user_controller.rb:37:in `new'' [RAILS_ROOT]/vendor/plugins/login_engine/app/controllers/user_controller.rb:37:in `signup'' [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:853:in `send'' [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:853:in...
2005 May 11
7
1.0.8 Salted hash login generator available
All, Version 1.0.8 of the salted hash login generator is available. This contains a few minor bug fixes with the generator plus some README clarifications. If you are successfully running with the code already, you probably do not need this. Joe
2006 Jan 11
14
User Engine/General Engine issues
...bo up and working and am having difficulties. I got the login engine up and running fine, no problems. Now, on to the user engine. After fixing the needed stuff in the bootstrap task so it loads I''m able to login as the default admin ok. BUT none of the views/controllers that are in login/user_controller are being overridden by the user/user_controller, infact, the user_engine controller doesn''t seem to be getting called at all! If I try to do a /user/list it tries to show the right view, but complains the the @content_columns are null, because the action method never got called. I put...
2009 Aug 06
18
Best Practices Question
Should models call action mailers, or should those calls always originate from controllers? For example, should user.forgot_password send the email, or should the user_controller.forgot_password? Just looking for some opinions... Thanks, Tom
2005 Aug 26
2
Salted Login Hash Woes
I had the Salted Login Hash Generator working at one point and then it just stoped working. It was around the time that I changed hosts and I think that it just might not be able to connect to the new server. I have tried everything though and it just doesn''t seem to work out. I''m now thinking that maybe it has to do with something else that I changed in the project. Is
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
...column_definition'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1185:in `initialize_without_callbacks'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:236:in `initialize'' #{RAILS_ROOT}/app/controllers/user_controller.rb:67:in `generate_blank'' #{RAILS_ROOT}/app/controllers/user_controller.rb:3:in `login'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in `perform_action_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/act...
2007 Aug 09
3
method_missing error......need some eyes for this one
...85ee28> RAILS_ROOT: C:/instant_rails/InstantRails/rails_apps/puget/config/.. Application Trace | Framework Trace | Full Trace C:/instant_rails/InstantRails/ruby/lib/ruby/gems/1.8/gems/ activerecord-1.15.3/lib/active_record/base.rb:1857:in `method_missing'' #{RAILS_ROOT}/app/controllers/user_controller.rb:63:in `edit'' Request Parameters: {"user"=>{"password_confirmation"=>"blip", "current_password"=>"blippi", "password"=>"bloppi"}, "commit"=>"Update", "attribute"=>&...
2006 Jan 03
3
Engine and controller layout confusion
Hi all, Installed the login_engine which is working. But I''m confused as to how I tell Rails to use the "/app/views/layout" rhtml files, when partials from the login_engine are used from "/vendor/plugins/login_engine/app/views/user". Do I copy login.rhtml to /app/view/mgmt? (mgmt is a controller name in my app) Along the same line: I also have a nil error on the
2006 Jul 07
4
need help with some ugly code - is there a better way?
Hi, In my user_controller.rb, I have the following method, which is supposed to send the user to their profile, dependng on what "role" they are (the roles correspond to the other controllers: venue, band, fan): def login if request.post? if session[:user_id] = User.authenticate(params[:use...
2005 Dec 09
7
UserEngine - rake bootstrap aborted
...ller'' I''ve commented out the following: # We need to wrap around the old edit # alias :old_edit :edit # def edit # @all_roles = Role.find_all.select { |r| r.name != # UserEngine.config(:guest_role_name) } # old_edit # end (vendor/plugins/user_engine/app/controllers/user_controller.rb) It appears to have worked correctly and created the the default roles. Is this just depreciated code/bug, or will i run into problems later on? Cheers, -v -- keys: http://codex.net/gpg.asc You can never plan the future by the past. -- Edmund Burke
2006 Aug 08
1
form parameter
How can I change some parameters in a function of the controller. I have a User_Controller, who''s responsible for update the information fields in the database. The parameters are "id", "firstname" and "lastname". Now, I want to manipulate parameter "lastname", because I would like to add at the end a point. >> Thomas Miller...
2006 Jan 16
1
[roles/users]I give up, please help
> Im testing ruby on rails and to practice i set my mind on making a login > system. because i would come across of regularly made source. > files: user_controller.rb, user.rb > my table layout: users: |id|username|password usertypes: |id|name| (admin, moderator, guest) users_usertypes: |usertype_id|user_id| (+foreign key assocc) > i have this in my user.rb file: class User < ActiveRecord::Base has_and_belongs_to_many :usertypes, :join_table...
2007 Aug 31
1
Firebird find method return nil
I use the firebird db. I have a Users table If in ruby user_controller I use users = User.find(:all) print(users) I view >>nil Can you help me? Thank you Andrea --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send...
2006 Jun 11
2
Finding a record and showing it -- how?
...gt;Name:</label> <%= text_field_tag :name, params[:name] %> </p> <p> <%= submit_tag "Find", :class => "submit" %> </p> <%= end_form_tag %> </fieldset> </div> The find_user action in user_controller.rb def find_user user = User.find_by_name(params[:name]) if user redirect_to(:controller => "user", :action => "show") else flash[:notice] = "Unable to find user name" end end -- Posted via http://www.ruby-forum.com/.
2006 May 12
5
Implementing URLs with more than 3 levels in Rails.
Hi There I started using Rails recently, and I see it''s very easy for URLs that have up to 3 levels: /:controller/:action/:id But what do you do when you need more than 3? For example, my current project should have an "admin" interface. Admin has several sub-interfaces, for example a "users" interface. And the admin/users interface has several actions, e.g.
2006 Jul 05
1
Newbie SaltedHashLogin add new fields
...ctures. So here is my trouble i use mysql and add the new fields, after that i change the line changeable_fields = [''firstname'', ''lastname''], to changeable_fields = [''firstname'', ''lastname'', ''sex''] in the user_controller.rb file. so i can add new field, just try with one field so i can se how it works, after a some time i figure out that i need add a line in the localize file eng.yml, to see the correct label, and in the signup form i see the field with the input box for this new field. However in the edit...
2005 Dec 14
1
Problems with testing - error posting to other controller
...gt;{"login"=>"bob", "password"=>"atest"}, "action"=>"user/login", "controller"=>"ad"} It appears login goes to my ad_controller to search for a login method, but there is none because it is defined in the user_controller. Is it possible to do a post to another controller than the controller one is testing? Or should I just instantiate a session and move on? Help is very much appreciated. Thanks. Kind regards, Nick -- Posted via http://www.ruby-forum.com/.