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
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"
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
> 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 =>
> {:
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
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
<%= 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
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
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
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
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
11 matches
Mail list logo