| freeb0rn | wait no that's awful |
| GaryKing | freeb0rn: doesn't make the :id dynamic though |
| freeb0rn | well :id => your_id_variable whatever it might be |
| bitsweat | don't submit to a dynamic url make the id a form param instead |
| p34r | how do you shush it if it cant find Message.find(params[:id])? |
| GaryKing | freeb0rn: Is that for form_tag()? |
| p34r | its displaying an error and i just want to continue to view |
| freeb0rn | im nots ure why you're submitting to a dynamic URL in the first place |
| bitsweat | p34r: use Message.find_by_id and it'll return nil if not found |
| freeb0rn | bitsweat aha, yeah, but how do I make it do that? |
| Skiz | onchange="$('myform').action = '/blah/show/' + this.value;" |
| p34r | bitsweat: ah cool, thanks |
| GaryKing | freeb0rn: change dropdown value, then redirect to /show/id Skiz: oh snap, js magic |
| freeb0rn | yeah that's better |
| bitsweat | freeb0rn: pick a specific occurrence to use |
| Skiz | GaryKing, well thats the only way to change the action attribute on a form |
| CademiaX | validates_confirmation_of :password, validates_presence_of :password |
| Skiz | dynamically that is |
| CademiaX | does that work the same way as the email confirm? |
| freeb0rn | does creating a new event not create a new occurence as well? |
| bitsweat | don't solve the problem Skiz!! eliminate it ;) |
| Skiz | I've done it once or twive, its not nice but it works bitsweat, good idea, just answering the Q not fixing it ;) |
| GaryKing | Should I go with freeb0rn 's soln? |
| freeb0rn | mine might not even work now that I think about it |
| Skiz | event, occurrences. oh my. flashback |
| freeb0rn | I guess it could |
| CademiaX | validates_confirmation_of :password, validates_presence_of :password does that work the same way as the email confirm? |
| Skiz | its funny to see xp installer running on my mbp |
| bitsweat | pretty much, CademiaX try it test it |
| Skiz | CademiaX, yup there is a dynamic attribue now. password_confirmation |
| freeb0rn | bitsweat when I do Event.new is there no new occurrence created even though the event has_many occurrences? |
| GaryKing | <select id="id_title" name="id[title]" onchange="this.form.submit();"><option value="">SELECT ONE</option> is generated from <%= collection_select :id, :title, @client_types, :id, :title, { :prompt => 'SELECT ONE' }, { :onchange => 'this.form.submit();' } %> |