Thank you Colin,
Please find the following issue and code  which i asked ..

issue:-

Drop down questions shouldn't have a None option- should say "Select
One".

Detailed Description for the issue:-

In the dropdown question it defaults to "none", that is confusing, can
you have it say, "Select One"


CODE:--

This is my file location in my local 
machine:-C:\rails\sme_on_rails\app\views\presentation\content\question_widgets\_select.rhtml
_select.rhtml code:-

<% # $Id: _select.rhtml 5267 2009-04-02 22:05:54Z efinnera $
-%>

<% select_options = [] -%>
<%
@question.answers.find(:all, :order => "position ASC", :conditions => 
['parent_id IS NULL']).each{|answer|
  at = get_translation(answer, @translation.locale_id)
  select_options << [at.value, answer.id.to_s] if at
}
select_options = [[t('content_page.quiz_response.none', 'Select One'), 
nil]].concat(select_options.compact)
-%>
<% onclick_script = '' %>
<% onclick_script += 
"toggleOtherTextBox('[email protected]}_#{@other_answer_id}');"%>
<% onclick_script += "checkSkipping(#[email protected] - 1})"%>
<% previous_selection = params[:submitted_quiz]  ? 
params[:[email protected]_s] : nil %>
<div id='answers_<%= @question.id%>' class="quiz_answers">

<%=  select_tag("[email protected]_s}]", 
options_for_quiz_select(select_options, @question, previous_selection), 
:disabled => (@ready_to_grade ? true : false), :onchange => 
onclick_script) %>
</div>

#### i changed the option instead of None..Select One...

How ever these updates are not reflecting my machine.. is any more 
changes to do ...?

Thanks,
Prashanth ....




Prashanth Kumar wrote:
> Thanks Colin,How ever am not able to find the exact location for this 
> code..
> Can you plz guide me to find out the simplest way for this selection 
> code in my machine like any naming conventions follow for the view rhtml 
> file in my application.
> And one more thing Actuvally my issue is to select one dropdown that 
> place previously it had None option now i should select the same with 
> the "Select one"
> 
> Plz tell wat are the exact file to change for this issue in my 
> application.
> 
> Thanks,
> Prashanth
> 
> Colin Law wrote:
>> 2009/6/5 Prashanth Kumar <[email protected]>:
>>> Drop down questions shouldn't have a None option- should say "Select
>>> One".
>>>
>>> Detailed Description for the issue:-
>>>
>>> In the dropdown question it defaults to "none", that is confusing, can
>>> you have it say, "Select One"
>>>
>> 
>> If you are still having difficulty, what code in your view file are
>> you using to show the select box?
>> 
>> Colin

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to