[Rails] Re: Depracation warning style block helpers

2011-02-17 Thread S. Widmann
Hi, yes, it's definitely the right file. It's a js-request, that uses the returned code to fill a div. Regards sewid -- 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 rubyonrails-talk@googlegroups.com

Re: [Rails] Re: Depracation warning style block helpers

2011-02-16 Thread S. Widmann
What would be the correct url_for syntax? Regards, sewid -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-t

[Rails] Re: Depracation warning style block helpers

2011-02-16 Thread S. Widmann
Hi, I'm pretty sure. The hole code is: https://gist.github.com/831041 The deprecation warning is: DEPRECATION WARNING: style block helpers are deprecated. Please use . (called from _app_views_events_duplicates_show_js_erb___2237124407041796622_2181332520__676939742015288370 at /sites/sampleap

[Rails] Depracation warning style block helpers

2011-02-16 Thread S. Widmann
Hi, I have some code like this: <% @events.each do |event| %> But I get a deprecation warning: DEPRECATION WARNING: style block helpers are deprecated. Please use . When I use <%= @events.each do |event| %>, there is some unwanted output, that is being generated by @events.each. What do I hav

[Rails] Re: DRY in rspec tests

2011-02-14 Thread S. Widmann
I will try that, thanks! -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com.

[Rails] DRY in rspec tests

2011-02-11 Thread S. Widmann
Hi, I've got a lot of rspec controller tests. At the beginning of each controller, I have: def authenticate ... end def logout ... end Authenticates creates me a @current_user, logout destroys the @current_user. As I said, this code is at the beginning of each controller, not very DRY :-)

[Rails] Re: ActionMailer::Base.default_url_options

2011-02-05 Thread S. Widmann
Hi, I just found out, that this problem only occurs, when using config.cache_classes = true in my config/test.rb or config/development.rb. If I set it to false, everything works fine. Any ideas, why? Regards and thanks a lot, sewid -- You received this message because you are subscribed to

[Rails] ActionMailer::Base.default_url_options

2011-02-05 Thread S. Widmann
Hi, I want so set a default url for ActionMailer. I know, ActionMailer::Base.default_url_options is deprecated, so I use config.action_mailer.default_url_options = { :host => "localhost" } in my environments (test.rb, production.rb, ...). The problem is, I get a deprecation error and r