Displaying 3 results from an estimated 3 matches for "stellbr".
Did you mean:
stellar
2010 Mar 01
3
remove apostrophe in query
Hi,
I want to generate a query with conditions like that
:conditions => ["score_team_1 ? score_team_2", compare_sign] .
The resulting query ends e.g. with score_team_1 ''='' score_team_2
How can i remove the apostrophes from include into the string?
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Mar 02
1
localized host in ActionMailer Views
Hi,
I''ve got some domains , lets say example.com and example.de and I want
that the link in a ActionMailerView contains the correct localized
host e.g. with <%= @root_url %> .
Currently the host is set in the environment.rb with
"config.action_mailer.default_url_options = { :host =>
"example.com" }".
How can I set the host dynamically and localized?
2010 Jan 25
9
skinny Controllers, fat models with REST?
Hi,
I''m really new to rails, so i programmed some stuff and today i read
some things about skinny Controllers, fat models.
My Controllers are really fat now. So i''m asking myself how can i
shrink my controllers and move the code to the models, especially in
fact of REST e.g. in focus on error codes?
code example:
# POST /tasks
# POST /tasks.xml
def create
@authorized