Closed krewetka closed 12 years ago
Thanks for your contribution, but please, explain the problem a little bit more because I don't understand it.
I'm not Ruby programmer and cannot really explain why but with out this .html_safe my "project" select look like
<select id="project_id" name="project_id"><option value='-1'>-Select Project</option><option value="1">Jetsystem</option>
<option value="2">MSS</option></select>
instead of
<select id="project_id" name="project_id"><option value='-1'>-Select Project</option><option value="1">Jetsystem</option><option value="2">MSS</option></select>
So it looked like empty select. Making this change fixed it.
It's strange, it works well on everyone else environments.
What's your environment?, OS, browser, etc...?
Well, I've been reading a little bit about this, and it's strange that anybody has had this problem because in Rails 3 (Redmine 2) strings are escaped automatically, so it can't work as expected and .html_safe must be used in this case.
On Thursday (tomorrow is bank holidays here) I'll test it on a Redmine 2. I'm sure the problem will raise and your solution must be the cure.
Well, I've been reading a little bit about this, and it's strange that anybody has had this problem because in Rails 3 (Redmine 2) strings are escaped automatically, so it can't work as expected and .html_safe must be used in this case.
Yeap, I'm surprised as well that I'm the first one writing about this problem.
On Thursday (tomorrow is bank holidays here) I'll test it on a Redmine 2. I'm sure the problem will raise and your solution must be the cure.
We have bank holiday tomorrow as well :)
Glad my solution might be helpful ;)
Select with projects wasn't working on my redmine.
All