# Understand submit\_tag

**URL:** <https://www.ruby-forum.com/t/understand-submit-tag/156681>\
**Category:** Rails\
**Created:** [December 31, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681 "2008-12-31T22:01:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![arachnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Post date:** [December 31, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681/1 "2008-12-31T22:01:36Z")

</div>

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ário”, :class =\> “submit” %\>

Translation from portuguese: “Novo Usuá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.

---

<div class="post-metadata">

**Author:** ![arachnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Post date:** [January 1, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681/2 "2009-01-01T13:01:04Z")

</div>

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

> **[Opera News](https://blogs.opera.com/news/)**
>
> The latest news about Opera web browsers, tech trends, internet tips.

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 \<

---

<div class="post-metadata">

**Author:** ![arachnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Post date:** [January 1, 2009, 4:14pm UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681/3 "2009-01-01T16:14:54Z")

</div>

On Jan 1, 12:00 pm, “shahroon ali” [removed\_email\_address@domain.invalid](mailto: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

---

<div class="post-metadata">

**Author:** ![arachnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Post date:** [January 1, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681/4 "2009-01-01T16:20:45Z")

</div>

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  
> [The Opera Blog - News | Opera](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.

---

<div class="post-metadata">

**Author:** ![arachnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Post date:** [January 7, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681/5 "2009-01-07T12:52:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![arachnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Post date:** [January 7, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681/6 "2009-01-07T13:02:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![arachnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Post date:** [February 11, 2009, 10:00am UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681/7 "2009-02-11T10:00:09Z")

</div>

(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.

---

<div class="post-metadata">

**Author:** ![arachnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Post date:** [January 2, 2009, 7:40am UTC](https://www.ruby-forum.com/t/understand-submit-tag/156681/8 "2009-01-02T07:40:12Z")

</div>

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 \<
