search for: user_type

Displaying 12 results from an estimated 12 matches for "user_type".

Did you mean: use_type
2006 Apr 19
2
Beginner problem with foreign keys
Hi, I''ve been trying to get this to work all night. I''ve made some progress by reading other posts, but I''m stuck now and can''t figure out what I am doing wrong. I have two tables: application_users and user_types. In my application_users table I have a field named "user_type_id". At first, I thought if I set up the foreign key with the correct names, it would automatically appear in my "new" form, but I got past that issue. My application_user model looks like this: class Applica...
2005 Mar 09
10
Confused about extending the login generator ''user''
I''ve been using the login generator ''out of the box'' for simple authentication, and its been working fine. Now I want to extend it by simply adding ''type_id'' field which links to my ''user_types'' table, but I''m hitting: #<ActionController::SessionRestoreError: Session contained objects where the class definition wasn''t available. Remember to require classes for all objects kept in the session. The session has been deleted.> 1) My application.rb is straig...
2013 Jun 18
1
How to Pass Jquery selected dropdown values and radio button values to controller
Hi, I have an advance search page and its code is as follows - I have written my code like this <div class="container"> <%= form_tag search_index_path, method: :get do %> <%= radio_button_tag ''user_type'', ''customer'' %><p>Customer</p> <%= radio_button_tag ''user_type'', ''supplier'' %><p>Supplier</p> <% end %> <h2>Search Criteria</h2> <div id="dropdown"> <...
2006 Mar 22
1
How do you clean up this cryptic code?
So, I''m coding my school project in Rails. There are two models, User and Restaurants. I noticed that in Restaurants, when you use the belongs_to method, you could specify the condition of the associated table. There are a few types of users, in the user_type column of the users table - owners is type 1, users are type 2. So in my haste to hand in enough code, in the Restaurant model, I wrote: belongs_to :owner, :class_name => "User", :foreign_key => "owner_id", :conditions => "user_type =1" That worked fine. But...
2008 Mar 28
2
Wrong story step running
Hi I have three steps like this: Given ''a user called "$name" of type $user_type and status $user_state in organisation "$organisation_name"'' do |name, user_type, user_state, organisation_name| $runs ||= 1 puts "MOO #{$runs}" $runs += 1 # ... end Given ''a user called "$name" with username "$username"...
2005 Mar 10
0
RE: Confused about extending the login generator ''user'' [fixed]
>> that should be "belongs_to :user_type" Bingo! -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jarkko Laine Sent: Wednesday, 9 March 2005 6:59 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@publi...
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
...n Store).) on line #2 of users/new.fbml.erb: 1: <h1>Welcome To Courses, Let''s Get Started.</h1> 2: <% form_for :user, user_path, :method => :post do |form| %> 3: <fb:editor-custom label="You are a"> 4: <label><%= radio_button_tag ''user_type'', ''student'', true %> Student</label> 5: <label><%= radio_button_tag ''user_type'', ''instructor'' %> Teacher</ label> vendor/rails/actionpack/lib/action_controller/ request_forgery_protection.rb:114:in...
2009 May 14
3
Mysql query is not working
Please, Can anyone help me to execute this query? SELECT * FROM table WHERE customer_id IN (SELECT IF(1 <> 2,''SELECT customer_id FROM customers'',''SELECT customer_id FROM company'')) Regards... -- Posted via http://www.ruby-forum.com/.
2008 Apr 03
1
Anyone experienced RSpec/Autotest forgetting models?
Hi Saving a controller spec frequently gives me this error: 52) LoadError in ''UsersController GET /users with basic request params should find all the user types'' Expected /home/amoran/Documents/becta/apps/Backend/app/models/user_type.rb to define UserType ./spec/controllers/users_controller_spec.rb:299: script/spec:4: I have to Ctrl-C autotest before it will load again. Anyone else seen this? Is it a known issue? I am on trunk r3333. Thanks Ashley -------------- next part -------------- An HTML attachment was scrubbed... U...
2006 Feb 02
1
circular table refs in activerecord
...difiers ---------------+-----------------------------+----------------- id | integer | not null default nextval(''public.users_id_seq''::text) login | character varying(25) | not null password | character varying(150) | not null user_type | character varying(20) | not null first_name | character varying(30) | not null last_name | character varying(30) | not null email_address | character varying(100) | not null created_on | timestamp without time zone | not null updated_on | timestamp without...
2006 Apr 04
2
Sharing controller code between views - best practices?
Hi, I have controller code that needs to be shared between multiple different user type views and want to know what is considered ''best practice'' or what other people are doing out there. Example: I have admin users, salesperson users, and possibly another type of user. They all need code to add/edit/delete a property - and other abilities. The code would be identical(in
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
Hello Dovecot community, Below please find a patch that adds support to dovecot-1.2.11 for: - RFC 4467 - IMAP URLAUTH Extension - RFC 4468 - Submission BURL - RFC 4469 - IMAP CATENATE Extension URLAUTH URLAUTH is added as a plugin so it can be disabled to satisfy site security requirements. Each user's URLAUTH keys for all mailboxes are stored in a file named