Re: Rails 2.0 todo list with authentication
neat
Why not add a a nice calendar interface
Install the CalendarDateSelect plugin:
script/plugin install http://calendardateselect.googlecode.co ate_select
Include the javascript prototype within the <head> of "app/views/todos/todo.html.erb ":
<%= javascript_include_tag :defaults %>
<%= calendar_date_select_includes "red" %>
You can also use "silver" or "blue"
Then in your views/todo/new.html.erb and views/todo/edit.html.erb files replace
<%= f.datetime_select :due %>
with
<%= calendar_date_select_tag "todo[due]", nil, :embedded => true, :time => true %>
You could also use other variations without time http://www.restatesman.com/static/calendar/
Then it worked for me.
Re: Rails 2.0 todo list with authentication
Great stuff, guys!
Re: Rails 2.0 todo list with authentication
Thanks for the tutorial - works good...
One thing though with the Calendar...
It installed fine and I've tried playing around with the options and checked out the web site, but when I Edit an existing ToDo, the current 'due' date/time does not appear.
How do you make that happen ?
TIA - Dave
Re: Rails 2.0 todo list with authentication
The acts_as_authenticated plugin is now outdated... do you have a new version of this tutorial with another plugin or gem for authentication?
Thanks.
Re: Rails 2.0 todo list with authentication
Restful Authentication has replaced acts_as_authenticated. There's a tutorial here on Rails Forum. I found this tutorial at AVNet Labs helpful as well. Give that a shot.
Cheers
Re: Rails 2.0 todo list with authentication
Thanks Ignition, the last link you posted was really helpful.
Re: Rails 2.0 todo list with authentication
I have a to do list that uses casual authentication - each user has a 7 digit 'key' known only to them, with this they can access their to do list. This might not to be to everyones taste, some people prefer to log in with a username/password combination, but I've found some users want to log in with one click, without having to type passwords at the start of each session. Anyway, see what you think, comments welcome: http://www.reallygoodtodolist.com/
I'm working on a tutorial for the casual authentication and will post when its complete.
Cheers,
Alex.