On Sun, Jan 2, 2011 at 11:34 AM, Tom <tomjmalone@gmail.com> wrote:
> Ok it might be easier to show you type of thing I want to do.
>
> class ActionsController < ApplicationController
> def index
> @actions = CorporateAction.all(:headers => request.headers)
> end
>
> def show
> @action = CorporateAction.find(params[:id], :headers =>
> request.headers)
> end
> end
>
> Where CorporateAction is an ActiveResource ie
>
> class CorporateAction < ActiveResource::Base
> self.site = "http://localhost:3000"
> self.format = :json
> end
>
> Is this possible or is there another way of doing it?
Is *what* possible? None of the above makes any sense to me -- can
you describe *exactly* your goal?
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment