Displaying 4 results from an estimated 4 matches for "class_vars".
Did you mean:
class_var2
2007 Dec 29
2
Sending methods after classifying
The following code gives me an error:
class_vars = [''fruit'',''cow'',''coffee''].each do |class_var|
"#{class_var}".classify.send(:find, 1 + rand(10))
end
The error message stack:
LocalJumpError: no block given
from (irb):34:in `find''
from (irb):33:in `each'...
2012 Mar 29
1
TR: [e1071] Load an SVM model exported with write.svm
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20120329/cfdd2be3/attachment.pl>
2005 Dec 30
6
call a method once per page request
Hi,
I''m wondering if there is a simple solution to call a method once per
page request.
I tried to place my call in a before_filter in ApplicationController but
it''d called a second time if I use render_component from a view.
Seems to me that a hook should be added in Dispatcher#prepare_application.
Context: working on i18n, I''m trying to check lang either from uri,
2007 Oct 02
19
Per-Request View Paths
I haven''t had a chance to work on fixing multiple controller view paths
recently. My original patch attempt was:
http://dev.rubyonrails.org/ticket/8582
It was rejected due to the fact that it was fixing the symptom more than the
problem.
However, I think it''s critical that this problem get fixed, otherwise the
whole concept of view_paths is severely neutered and