Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions rails/views/form_helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ Najcesce upotrebljavani vid forme je forma za pretragu. Ona najcesce sadrzi:

Ovaj kod:

<pre><code><%= form_tag("/search", method: "get") do %>
<%= label_tag(:q, "Search for:") %>
<%= text_field_tag(:q) %>
<%= submit_tag("Search") %>
<% end %>
</code></pre>
<%= form_tag("/search", method: "get") do %>
<%= label_tag(:q, "Search for:") %>
<%= text_field_tag(:q) %>
<%= submit_tag("Search") %>
<% end %>


Generise sledecu HTML formu:

Expand Down Expand Up @@ -573,4 +573,4 @@ Sprecavanje praznih rekorda:
class Person < ActiveRecord::Base
has_many :addresses
accepts_nested_attributes_for :addresses, reject_if: lambda {|attributes| attributes['kind'].blank?}
end
end