[Rails] Re: problem with RJS, params and Internet Explorer

2009-10-06 Thread Alexei Spirit
Here is the auth system: --- class ApplicationController < ActionController::Base helper :all include NtlmSystem private ... def user_required if !logged_in? redirect_to('/login') end end def logged_in? if

[Rails] Re: How do I access a child table/model from the parent in sql s

2009-10-06 Thread Alexei Spirit
I suppose this would be very helpfull for u: http://guides.rubyonrails.org/active_record_querying.html -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Re: How do I access a child table/model from the parent in sql s

2009-10-06 Thread Alexei Spirit
I suppose this would very helpfull for u: http://guides.rubyonrails.org/active_record_querying.html -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

[Rails] Re: How do I access a child table/model from the parent in sql s

2009-10-06 Thread Alexei Spirit
> One last question. > I need the description for the manufacturer that is found in the table > descriptions. How do I get this columns info and how do I access it in > the view? > > Thank you in advance With this one: > find(:all, :joins => :descriptions, :order => :name, :conditions => > {:

[Rails] Re: problem with RJS, params and Internet Explorer

2009-10-06 Thread Alexei Spirit
Could it be concerned with session & cookies? I noticed that, when I switch authorization off, onchange event works even in IE -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[Rails] Re: problem with RJS, params and Internet Explorer

2009-10-06 Thread Alexei Spirit
It seems to me the promlem is not in JS, cause I can get select value from page by any method. In my opinion the problem in transfer ":with => " value in IE -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: problem with RJS, params and Internet Explorer

2009-10-06 Thread Alexei Spirit
<%= f.select("service_group_id", @service_groups,{:selected => 0},{ :onchange => remote_function( :update => "incident_service_id", :url => {:action => :update_services}, :with => "'service_group_id=' + $F('incident_service_group_id')") }) %> I'd tried this way, but effect is the

[Rails] Re: How do I access a child table/model from the parent in sql s

2009-10-06 Thread Alexei Spirit
Alexei Spirit wrote: > Something like this: > > Manufacturer.all :joins => :description, :conditions => {:descriptions > => {:locale => I18n.locale}} Version with :order Manufacturer.all :joins => :description, :order => :name, :conditions => {:descri

[Rails] Re: problem with RJS, params and Internet Explorer

2009-10-06 Thread Alexei Spirit
When I'm doing like this: :onchange => remote_function( :update => "incident_service_id", :url => {:action => :update_services}, :with => "'service_group_id=' + alert(this.value)") IE shows write option value... I'm using Prototype. So could u show me how to access this value by Pr

[Rails] Re: How do I access a child table/model from the parent in sql s

2009-10-06 Thread Alexei Spirit
Something like this: Manufacturer.all :joins => :description, :conditions => {:descriptions => {:locale => I18n.locale}} -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ru

[Rails] problem with RJS, params and Internet Explorer

2009-10-06 Thread Alexei Spirit
Hi, I have some RJS code to update my select fields. It perfectly works on Firefox, but IE don't want to send params to controller. Here is the code in view: <%= select("incident","service_group_id", @service_groups,{:selected => 0},{ :onchange => remote_function( :update => "incident_ser