On 3 December 2015 at 08:09, fugee ohu <fugee279@gmail.com> wrote:
> i dunno, prints the result of the expression inside <% %> ?
Sorry, I did not read your post carefully enough so asked the wrong question.
Post (by copy/paste from your code) an example that shows the problem
and also the html that is generated by it.
Always a good idea to provide an example so that there is no confusion
about what is meant.
Colin
>
> On Thursday, December 3, 2015 at 2:56:50 AM UTC-5, Colin Law wrote:
>>
>>
>> On 3 Dec 2015 07:04, "fugee ohu" <fuge...@gmail.com> wrote:
>> >
>> > Why does <%= form_for(@listing) do |f| %> the form helpers f.select,
>> > f.label, f.text_field, f.checkbox, f.radio_button all prepend model names to
>> > fields like listings_title, listings_description or in my browsers source
>> > listings[title] listings[description] and to avoid this i have to write my
>> > own html instead of using the helpers
>>
>> What do you think the = in <%= form_for does?
>>
>> Colin
>>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Ruby on Rails: Talk" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to rubyonrails-ta...@googlegroups.com.
>> > To post to this group, send email to rubyonra...@googlegroups.com.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msgid/rubyonrails-talk/aa7a1ebe-fea0-402f-8976-29874800608f%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/4c2634bb-ce29-450c-83c8-58749480ae37%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtkx2jpUkOYSNa_1dPai6RXBo_nUqwkBLZ977sdtNYdDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment