Forum: Ruby on Rails Understand submit_tag

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Daniel F. (Guest)
on 2008-12-31 23:01
Attachment: files.tar.gz (0 Bytes)
Hi everyone,
I was following the book Agile Web D. with Rails 2Ed. by Dave
Thomas.

So, at some part of my studies, I decided to try to create my own
application based on what I've learned...
Now I'm in trouble in a simple form.

I tried to create a form to register new users.

I'm sending attached the files that I created for this.

but my view don't call the action add_user when the user click on submit
<%= submit_tag "Novo Usu&aacute;rio", :class => "submit" %>

Translation from portuguese: "Novo Usu&aacute;rio" = "New User"

I searched a lot in foruns and google and didn't solve my problem. I
believe it's something easy That I couldn't solve because my lack of
knowledge in Ruby.
shahroon ali (Guest)
on 2009-01-01 14:01
(Received via mailing list)
The code you have written down here is okay, there is no problem with
the
submit tag. Check your error log. Or you can check and also download a
very
helpful book for the RoR beginners.Here is the link
http://my.opera.com/learnror

here you will find a book and some RoR related notes.

Thanks & Regards
Shahroon

On Thu, Jan 1, 2009 at 2:01 AM, Daniel Franca <
Frederick C. (Guest)
on 2009-01-01 17:14
(Received via mailing list)
On Jan 1, 12:00 pm, "shahroon ali" <removed_email_address@domain.invalid> wrote:
> The code you have written down here is okay, there is no problem with the
> submit tag. Check your error log. Or you can check and also download a very
> helpful book for the RoR beginners.Here is the linkhttp://my.opera.com/learnror
>
> here you will find a book and some RoR related notes.
>
This isn't the place for pimping links for downloads of content you
are not permitted to redistribute.

Fred
Daniel F. (Guest)
on 2009-01-01 17:20
shahroon ali wrote:
> The code you have written down here is okay, there is no problem with
> the
> submit tag. Check your error log. Or you can check and also download a
> very
> helpful book for the RoR beginners.Here is the link
> http://my.opera.com/learnror
>
> here you will find a book and some RoR related notes.
>
> Thanks & Regards
> Shahroon
>
> On Thu, Jan 1, 2009 at 2:01 AM, Daniel Franca <

That's the problem =/ nothing happen at the log file when click the
button, neither debugging the server stops at the add_user method when
click the button, only stops there at the first time I go to the site.
shahroon ali (Guest)
on 2009-01-02 08:40
(Received via mailing list)
Attachment: simple_user_package.rar (0 Bytes)
Frederick you are right that I am not permitted to redistribute this
sort of
content, but in my point of you the learning material should be free for
every one, and If I have this book and is helped me a lot then why I
shouldn't help others.   And Daniel check the code I am sending you,
download the attached file.

Thanks & Regards,
Shahroon

On Thu, Jan 1, 2009 at 8:20 PM, Daniel Franca <
Frederick C. (Guest)
on 2009-01-07 13:52
(Received via mailing list)
On 2 Jan 2009, at 06:39, shahroon ali wrote:

> Frederick you are right that I am not permitted to redistribute this
> sort of content, but in my point of you the learning material should
> be free for every one, and If I have this book and is helped me a
> lot then why I shouldn't help others.

There are free resources. Link to those. Link to the amazon page of
the book. Don't disrespect the work of others (have you considered for
example that the author of that book is a member of this group?)

Fred
shahroon ali (Guest)
on 2009-01-07 14:02
(Received via mailing list)
Please don't make this group a debate group on useless things. If you
want
me to not to refer that book okay I will not. And I think Amazon is not
a
free resource.
Thanks & Regards,
Shahroon

On Wed, Jan 7, 2009 at 4:51 PM, Frederick C.
<removed_email_address@domain.invalid
Noogrub (Guest)
on 2009-02-11 11:00
(Received via mailing list)
(private aside to Frederick C.):

I've been reading through forums all day trying to fine tune a rails
app I am building and you just keep popping up in "answer" to politely
posted questions.  You never have anything useful to add, but you are
quick to criticize.  You never seem to help anyone, but you seem ready
to complain.  Why don't you get a different hobby, or find something
useful to add, or at least be quiet?   Failing those, please consider
dropping dead.

And by the way, once someone pays for a book, they certainly do have
the rights to use the contents, especially when they credit it as the
source, very especially when they do so in the way Daniel did.  "Agile
Web D. with Rails 2ed" by David Thomas.  The author of the
book surely realizes that people who are online trying to use it are
helping promote it.  I bought the thing specifically because it was
mentioned in here so often.  It is a great book.

****************

Everyone else ,
If someone can answer the simple question in Daniel Franca's original
post (above), I and several others who are trying to learn Rails would
deeply appreciate it.  The documentation for rails form helpers
stinks; forum help is the often only hope to try and make sense out of
this.  The book helps, but forum support makes the book ten times as
valuable.
This topic is locked and can not be replied to.