I know filter concept, but how we can apply that concept hear to work
with instance variables? give me one example please .
On Sep 19, 5:22 pm, Rajarshi wrote:
Yes Because u d onot know filter
Please read before after around filter u will get
On Mon, Sep 19, 2011 at 5:43 PM, subbarao wrote:
In my controller show method i have two instance variables which have
large amount of data and take much time to fetch from remote system.
shown below
def show
@graph = Koala::Facebook::GraphAPI.new(session[:fbuser]
["credentials"]["token"])
@friends = @graph.get_connections("me", "friends")
@friends =...@friends.to_a
end
in the same controller I have another action which requires same data.
shown below
def list
@graph ||= Koala::Facebook::GraphAPI.new(session[:fbuser]
["credentials"]["token"])
@friends ||= @graph.get_connections("me", "friends")
@friends|| =...@friends.to_a
end
which are loading every time even i used  || (or) in fetching.
Any help regarding to re usage of instance variables of one action in
another action of same controller.
Thank You
--
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.
--
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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 8 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedSep 19, '11 at 12:13p
activeSep 19, '11 at 3:41p
posts8
users4
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase