search for: find_by_uid

Displaying 3 results from an estimated 3 matches for "find_by_uid".

Did you mean: find_by_id
2011 Feb 24
1
concurrent users.
If I have: class ApplicationController < ActionController::Base protect_from_forgery before_filter RubyCAS::Filter before_filter :fetch_operator include SessionsHelper private def fetch_operator @operator ||= session[:cas_user] && Operator.find_by_uid(session[:cas_user]) log_out if @operator.nil? end end @operator is available for all controllers of my application. But If I run, for example, two instances of my application from different locations. In the first instance the user logs in as ''user1'', later from another lo...
2007 Feb 09
2
Re: customizing map.resources for REST
Yeah... I''m totally struggling to grok resource routes too... seems like they''ve totally blown the beautiful simplicity of the old url pattern stuff out of the water. Would love to hear an answer to this question!!! b Andy Triboletti wrote: > I want to customize map.resources so it uses a uid in the URL instead > of the database id. The uid is a field on my object.
2011 Jun 15
12
Create or Update Model with JSON?
Having issue updating a model with JSON. I simply *"model.attributes=json"*, which does update the attributes but not the id, or uuid in this case. I want to save or create the record (if it''s id exists). Seems like this would be documented, but I''m not finding anything. I''m using a MOM to pass JSON between apps. Thanks. -- You received this message because