[Rails] additional authentication logic in devise

2011-04-27 Thread femig
hello, please how and where can i place additional authentication logic in devise? i have added a custom column called expire_date in my users table and it is a date column. i want an additional requirement that the date there must not be later than todays date before allowing them to be authent

[Rails] newbie question on rails 3

2011-04-26 Thread femig
hello, i have a basic rails 3 question.. i have a list of jobs in my db and each job is tied to a particular location..in short i have one location to many jobs.. i have created scaffolding for jobs and locations and created the appropriate references. i want to create a list of jobs such that

[Rails] Foreign key dropdowns in scaffolded views

2011-04-23 Thread femig
Hello, i created 2 models using scaffolding with rails 3 the models were locations and jobs 1) Each job has a location i created the required reference calls in the scaffold generation code but when i look at the view to create a new job, all i see is a textbox where i should add the location ID