Forum: Ruby on Rails 500 Internal Server Error

Af0ad4152074746e085c28348a5ee010?d=identicon&s=25 Nomosyn (Guest)
on 2012-10-30 12:27
(Received via mailing list)
Hello !

ruby 1.9.2p323 (2012-05-22 revision 35755) [x86_64-darwin11.4.0]

Well... I get stuck on this error <https://gist.github.com/3974521>, and
don't know what to do with it...

Thank you for the hand !
6dbddfda34303f8d83620f7293612671?d=identicon&s=25 Tommaso Visconti (Guest)
on 2012-10-30 12:36
(Received via mailing list)
Il 29/10/12 17:14, Nomosyn ha scritto:
> Hello !
>
> ruby 1.9.2p323 (2012-05-22 revision 35755) [x86_64-darwin11.4.0]
>
> Well... I get stuck on this error <https://gist.github.com/3974521>, and
> don't know what to do with it...
>
> Thank you for the hand !

maybe "rows: 1", it isn't an option for text_field (but for textarea)
7e1d785f211b3cc43c690ca208626be1?d=identicon&s=25 Luis Vasconcellos (Guest)
on 2012-10-30 12:39
(Received via mailing list)
Yes, it is only a text area option, and also the second parameter that a
text_field accepts it's the prompt value (default value) of the field,
and
that second parameter needs to be a string.
*

Luis Va**sconcellos *|* *Web Developer at DTM

wblog:  luisvasconcellos.com
twitter: @vasconcelloslf <http://www.twitter.com/vasconcelloslf>
mobile: 55 21 95100576

http://dtmtec.com.br <http://www.dtmtec.com.br>
@dtmtec <http://www.twitter.com/dtmtec>



2012/10/30 Tommaso Visconti <tommaso.visconti@gmail.com>
Af0ad4152074746e085c28348a5ee010?d=identicon&s=25 Nomosyn (Guest)
on 2012-11-03 19:16
(Received via mailing list)
Thank you for the reply :-)

The problem occurred after a "bundle update" and we did not check what
got
updated...
The problem comes from
https://github.com/bcardarella/client_side_validations, a plugin that we
used.

Here is the problem : with the ":validate => true", "f" seemed to expect
fields *post-*"bundle update" that it did not check  *pre-*"bundle
update".

So i removed ":validate => true" from the following code
<%= form_for([@grade,@tree,@knowledge_cell], :validate => true ) do |f|
%>
...
<% end %>

And it worked...

this solution is more about suppressing the problem that to solve it
properly... Should check the repo !
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.