Displaying 16 results from an estimated 16 matches for "badnaam".
2010 May 24
5
top 10/most popular lists
What''s the best way to handle views that show the top 10/most popular/
Recently updated/most commented type listing?
Should I have a separate model that is populated with records from
other models by a background job or should I need to use some sort of
caching? Perhaps both?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Oct 04
4
http caching a dynamic page
Is it possible to take advantage of http caching/proxy caching with
dynamic pages? i.e. pages with section/part that can change over time
but certain part of the page remain the same. I would rather not keep
re-rendering the static part but insure the dynamic part are rendered
with fresh data.
I am using memcached mostly as an object store that I can minimize db
hits but I still am rendering a
2010 May 14
4
Tricky model situatione
I have two models Club and users. users are regular authenticated
users and some of them might create a club. A club can also have
members (essentially users) and there are attributes and models that
apply to member but not to users.
Here is what I have right now.
Club => belongs_to :user
User => has_many clubs (since a user can host multiple clubs).
Now how do I fit this member model
2010 Sep 18
3
max-age/header problems with nginx
0 down vote favorite
I notice that in my production enviornment (where I have memcached
implemented) in see a cache-control - max-age header in firebug,
anytime I am looking at an index page (posts for example).
Cache-Control max-age=315360000
In my dev environment that header looks like following.
Cache-Contro private, max-age=0, must-revalidate
As far as I know I have not done anything
2010 Sep 24
1
Question about exception notification
This is for rails 2.3.5
can the manual exception notification be used in models or just
controller?
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com.
For more
2010 Aug 28
1
find_in_batches vs limit
Is the :limit option in the regular find call effectively same as
doing find_in_batches? or does doing something like the following
loads "all" of the record and then returns only 5?
find(:all, :conditions => [''age > ?'', age], :limit => 5)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2010 Jul 28
1
paperclip, authlogic and callback issue
I use authlogic for authentication and paperclip for handling user''s
profile picture attachments.
I use the following method to get the current_user
def current_user_session
return @current_user_session if defined?
(@current_user_session)
@current_user_session = UserSession.find
end
def current_user
return @current_user if defined?(@current_user)
2010 Sep 01
3
memcache in prod vs dev
I am using memcache for caching in my rails app and currently I have a
dev and a production environment.
I would like to run the dev environment without caching so that I can
debug more easily but I wanna enable the caching in production
obviously. I am using github and capistrano for deployment.
Without doing a check at every statement where I can potentially dig
into the cache, is there any
2010 May 18
0
i18n question
how do i configure custom model messages in i18n. I have a custom
validation that calls a method snd upon failure, add an error to an
attribute. I understand how to do this for standard built in
validations.
thanks
--
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
2010 May 19
0
I18N error
I have the following in my en.yml
en:
hello: "Hello world"
activerecord:
errors:
models:
et:
not_enough: "Not enough points for this transaction"
when I call I18n.t :not_enough in my custom validation method in model
Et, I get a translation missing error. I have restarted the app, no
luck. I can translate ''hello'' just fine.
2010 Jun 10
0
ajaxful rating question
I impleneted ajaxful rating on a Store model with 3 dimensions. I am
caching rating average for each dimension as well as the overall
average rating. The individual dimension rates are being saved and
shown correctly and everything works fine except, the "rating_average"
does not update (still at 0) even after multiple users have updated it
for a specific record.
--
You received this
2010 Aug 09
0
Logging form delayed job class
I have asked this before without any luck, trying again.
this is what I have in my dj.rb initializer
Delayed::Worker.backend = :active_record
Delayed::Worker.logger = Rails.logger
#Delayed::Worker.logger = ActiveSupport::BufferedLogger.new("log/
##{Rails.env}_delayed_jobs.log", Rails.logger.level)
class Delayed::Job
def logger
Delayed::Worker.logger
end
end
if
2010 Sep 03
2
2.3.5 guide
It seems the guide at http://guides.rubyonrails.org/ has been updated
to 3.0. I am still using 2.3.5 with plans of upgrading. Any ideas on
how I can get the older guide?
Thanks
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
2010 Sep 17
0
Weird caching error
Using memcached/dalli on rails 2.3.5
I am trying to render to partials from the cache..and I see the
following messages in the production log.
[DEBUG 17-09-2010 10:03:06] Cache read: category_nav
[DEBUG 17-09-2010 10:03:06] 127.0.0.1:11211 running memcached v1.4.2
[DEBUG 17-09-2010 10:03:06] Cache hit: category_nav ({})
[DEBUG 17-09-2010 10:03:06] Rendered shared/_cat_nav_list (4.0ms)
[DEBUG
2010 Aug 02
0
delayed)_job gem installation issue
here is my environment.rb
config.gem ''collectiveidea-delayed_job'', :source => ''http://
gems.github.com''
>>gem list | grep coll
collectiveidea-delayed_job (1.8.2)
The gem infact got installed via rake gems:install. but now when I
start my app, it doesn''t recognize the gem being installed. Please
help.
script/generate delayed_job
2010 Feb 16
0
Strange routing(?) Issue
I have a Model event and the following two lines in routes.rb
1 - map.connect "events/:action", :controller => ''events'', :action => /
[a-z_]+/i
2 - map.resources :events, :has_many => :comments, :has_one
=> :address #, :collection => {:mapit => :get}
I have #1 so that I can call custom actions from a link_to_remote link
from my index page t0 update a