Displaying 3 results from an estimated 3 matches for "text_en".
Did you mean:
text_end
2006 Apr 16
5
render :collection and default value
Hi all,
I am having a lot of trouble to get the default value of text fields
when they are generated by a partial from a collection.
I have been on this for a whole week and I didnt find a single exemple
on the internet of someone using a partial that generate text field with
a default value.
I cant believe that I am the only one having this problem. Anyone has an
exemple they can show me?
2006 Apr 11
1
Default value in a Partial that use index
...------LIST.RHTML-------------
with this partial:
<p> concept:<%= h(variation.concept.name) %>
variation francaise:<%= text_field "variation", "text_fr","index" =>
variation.id %>
variation anglaise:<%= text_field "variation", "text_en","index" =>
variation.id %>
</p>
*************
using the previous code, I can update the database but when I call the
LIST page the fields arent updated with the default value from
@variations. why?!?
Thanks a lot for the help!
--
Posted via http://www.ruby-forum....
2007 May 16
7
bilingual site: exclude fields set from query
Hi all,
Is there a way to have searches no use some indexed fields, when
processing a query?
context:
I have a model Foo that holds some information in two languages :
- text1_nl, text2_nl, text3_nl
and
- text1_en, text2_en, text3_en
Some other fields are common to both languages and indexed as well
- first_name, last_name
Depending on the visitor language choice I need to exclude the