Re: [Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-08 Thread Michael Pavling
On 7 March 2010 14:16, xxdesmus xxdes...@gmail.com wrote: Not having any luck with Calendar Date Select so far ... got it installed, but it looks like the documentation is out of date @ http://www.railslodge.com/plugins/46-calendar-date-select  ...I can't for the life of me get the pop-up or

[Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-08 Thread Viorel
What errors? On Mar 8, 4:29 am, xxdesmus xxdes...@gmail.com wrote: I tried date_select but I kept getting a bunch of errors. On Mar 7, 3:01 pm, Viorel viorelvl...@gmail.com wrote: Hey, you don't happen to know of a simple way of implementing a date picker for a field in a form do you?

[Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-07 Thread xxdesmus
Thank you so much for all your help! On Mar 5, 2:44 pm, Michael Pavling pavl...@gmail.com wrote: On 5 March 2010 17:02, xxdesmus xxdes...@gmail.com wrote: So I have a bunch of form fields that I need to add up their values, and make sure their sum does not except the value entered in a

[Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-07 Thread xxdesmus
Not having any luck with Calendar Date Select so far ... got it installed, but it looks like the documentation is out of date @ http://www.railslodge.com/plugins/46-calendar-date-select ...I can't for the life of me get the pop-up or embedded calendar to display ...let alone get either to display

[Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-07 Thread Viorel
Hey, you don't happen to know of a simple way of implementing a date picker for a field in a form do you? I was hoping to accomplish this without needing to track down a plugin for the task. On a related note: how can I set the default value of a field to be today's date (just the date, no

[Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-07 Thread xxdesmus
I tried date_select but I kept getting a bunch of errors. On Mar 7, 3:01 pm, Viorel viorelvl...@gmail.com wrote: Hey, you don't happen to know of a simple way of implementing a date picker for a field in a form do you? I was hoping to accomplish this without needing to track down a plugin

[Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-05 Thread xxdesmus
I'd be putting this: def username=(value) write_attribute(:username, value.upcase) end in my controller right? Sorry for the beginning questions... On Mar 5, 11:12 am, Michael Pavling pavl...@gmail.com wrote: On 5 March 2010 16:05, Andy Jeffries andyjeffr...@gmail.com wrote: 2.

[Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-05 Thread xxdesmus
When I add this to my model: def after_initialize :date = Date.today end I get this error -- /home/xxdesmus/timetool/app/models/post.rb:38: syntax error, unexpected '=', expecting kEND :date = Date.today ^ when I try it this way: def after_initialize date = Date.today end It

Re: [Rails] Re: How to change a text field's contents to all uppercase letter

2010-03-05 Thread Michael Pavling
On 5 March 2010 17:02, xxdesmus xxdes...@gmail.com wrote: So I have a bunch of form fields that I need to add up their values, and make sure their sum does not except the value entered in a new form field. If the sum does exceed the form field value then I want to alert the user and prevent it