Skip to content

Instantly share code, notes, and snippets.

<%= link_to_function "A link_to_function without insert_html", nil %>
@agreycrane
agreycrane / _person_form.rhtml
Created November 16, 2009 00:07
Links work - however, add email address link is in the wrong location
<% form_for @person do |f| -%>
<p>
First Name: <%= f.text_field :first_name %>
</p>
<p>
Last Name: <%= f.text_field :last_name %>
</p>
<p>
Company: <%= f.text_field :company %>
</p>
<% form_for @person do |f| -%>
<p>
First Name: <%= f.text_field :first_name %>
</p>
<p>
Last Name: <%= f.text_field :last_name %>
</p>
<p>
Company: <%= f.text_field :company %>
</p>
@agreycrane
agreycrane / _person_form.rhtml
Created November 15, 2009 23:59
Broken - Combines both links in one href
<% form_for @person do |f| -%>
<p>
First Name: <%= f.text_field :first_name %>
</p>
<p>
Last Name: <%= f.text_field :last_name %>
</p>
<p>
Company: <%= f.text_field :company %>
</p>