>
> mm, u can do it
> but
> 1) u should write yet anothe action at controller, its not like REST
>

No reason why you should...

def show
   ...blah...blah...blah
   if request.xhr?
     render :partial => "whatever"
  end
end


> 2) its will be more slower, than render at mobile device, from json
>

How much slower is a big thing though.  If you can cache the response then
it should remove the load from Rails, if the content is small/gzipped over
the air time should be negligibly larger than JSON and if it takes a few
milliseconds longer than JSON parsing/DOM creation on a client device it's
not the end of the world.

Optimal performance isn't necessarily the only criteria in success...

Cheers,


Andy

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to