Displaying 20 results from an estimated 1000 matches similar to: "Why doesn''t my "action" take action?"
2006 Feb 18
5
Model methods and partial view templates
I have a method in a controller that invokes a
render :partial => ''some_partial_view''
In that view, I''m trying to access a method defined in a model, like
this;
<% for view in @an_array %>
<% local_var = view.some_method() %>
<% another_var = view.a_column_name %>
etc..
I am getting an undefined method error but the model is accessible
2006 Feb 16
1
Newby: Getting "unitialized constant SockServ" -- help
I can''t seem to find my error. I think it''s fairly basic. Do I have to
initialize SockServ somewhere or is this error message really indicating
something else?
uninitialized constant SockServ
C:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in
`const_missing''
#{RAILS_ROOT}/app/controllers/mindreadr_controller.rb:15:in
2006 Feb 18
4
Basic question: Where to initialize a flag?
I have found that if I initialize a flag in my controller (under def
Initialize), it appears everytime I call a controller action, the flag
is set to the initialize value (even though I''m not calling the
initialized action). Am I observing this clearly?
I don''t think I should initialize a flag in the index file. So where?
Specifically, I want to know if this action is a
2007 Apr 02
19
Pref for beginner book: Wrox (Holzner) or Ruby for Rails?
I''m a beginner. I''ve done the apple tutorial, Agile ROR (the depot
app, I stopped after that, a little to advanced with no base knowledge
of Ruby), Why''s guide and my copy of Chris Pine''s book today. After
Pine, I''m going to buy either the Wrox book or Ruby for Rails book. I
did a search and there''s not too much on the Wrox book (Holzner)
2006 Mar 09
15
regular expressions slay me
I am furiously trying to find what I am looking for in Pickaxe book and
not finding it.
I''m getting some values back from a posted form and I need to get the
''id'' number off the backend. The ''String'' will always come back to me
as...
Some_name\r\n123
where 123 is actually the id number which I need to execute the find.
The reason they are coming back
2006 May 23
14
Learn Ruby before Learning Ruby on Rails ?
hello Friends,
I am a newbie to "Ruby or Ruby on Rails". A J2EE application architect
at my day job. A fairly experienced PHP web-developer as well. After
reading into the many articles on Ruby/ROR, have to admit looks pretty
good so far. Really serious about getting into this and possibly
developing some good Web 2.0 applications.
Just wondering the best way to learn Ruby on
2006 Jun 25
6
Understanding Common Views
Hi Everyone,
I''m trying to formulate my thoughts on how views work in RoR and I
understand the basic bits -
1. Every controller has its own view defined using rhtml files in the
views/[controller_name] folder.
2. There is one "view" file (rhtml) for every in the controller and has
the same name as the method.
3. For portions that are common, partials can be used - file
2006 Feb 15
7
Ackbar - ActiveRecord Adapter for KirbyBase
= About Ackbar
Ackbar is an adapter for ActiveRecord (the Rails ORM layer) to the KirbyBase
pure-ruby plain-text DBMS. Because KirbyBase does not support SQL, joins or
transactions, this is not a 100% fit. There are some changes to the ActiveRecord
interface (see below), but it may still be useful in some cases.
= URIs
Ackbar: http://ackbar.rubyforge.org
KirbyBase:
2008 Sep 09
2
form_for submit to a custom action
hi forum,
I am new to rails, and i am just getting my hang of things.
Problem,
how do you pass content captured in a form to a custom method?
I have the following form:
<% form_for :message, @message, :url => { :action => ''reply''} do |f|
%>
<table cellpadding="4" cellspacing="5">
<tr>
<td>Content:<%=
2006 Apr 06
8
Fastest learning path to RoR
hi!
with a 4GL background, wanting to learn RoR, what is the fastest
learning path i should take? should i go grab a RoR tutorial, and learn
Ruby along the way, or start with plain Ruby first?
thanks for any inputs!
2004 Apr 05
1
Changes to ClassViewer
Kevin,
Very cool. I initially tried to figure out how to do it without those
evals, but I failed (thanks for picking up the slack :) Your changes
definitely improved the code, and made it much cleaner. Thanks.
By the way, what is pickaxe? I''m not familiar with that term.
_________________________________________________________________
Free up your inbox with MSN Hotmail Extra
2006 Jul 05
2
[Newbie] The pickaxe book and benchmark
Hello,
I was reading the pickaxe book and then I arrived to the chapter
"When trouble strikes" in the Benchmark section.
I have this code:
#!/usr/bin/ruby -w
require ''benchmark''
include Benchmark
LOOP_COUNT = 1_000_000
bm(12) do |test|
test.report("normal:") do
LOOP_COUNT.times do |x|
y = x +1
end
end
2006 Jul 20
19
Recipes versus Ruby for Rails: what''s best after Agile?
For expats from other languages, what''s the next best step after the
Agile Web Dev book:
Rails Recipes or Ruby for Rails?
Thanks,
--
Austin
--
Posted via http://www.ruby-forum.com/.
2006 Nov 13
3
(A bit offtopic): A good starting book for ruby programming?
Hi all
Guess it''s time for me to dig a bit deeper into the ruby language.
Can you recommend some good starting books on ruby programming?
Thanks.
--
Med venlig hilsen
Juri Rischel Jensen
Fab:IT ApS
Vesterbrogade 50
DK-1620 København
Tlf: 70 202 407 / Fax: 33 313 640
www.fab-it.dk / juri@fab-it.dk
2006 Feb 08
5
Regular Expression Question
I have looked through the Ruby Pickaxe book as well as done a search
but can''t figure out how to validate the format of a field. The field
I want to validate is a credit card expiration date field. Based on
our user study (going around the office and asking everyone the way
they like to fill out that particular field type) everyone prefers
the following format in one field:
2006 Jun 08
21
"Rails recipes" vs "Rails cookbook"
Reviews Wanted.
I''ve read the tables of contents and haven''t yet made up my mind.
Is one book clearly better than the other? Is one clearly full of bugs? Is one so much
further ahead that there is no choice? Are they both so incomplete that I should just
wait and only cook real food? Do trains still have dining cars?
Warren Fred
-------------- next part --------------
An
2006 May 02
4
ordering after a inject
Hi,
My results are getting out of order after I do the following command:
count = result.inject({}) { |hsh, row| hsh[row[''name'']] = row[''count''].to_i;
hsh }
Why?
Here are more specifics:
My complete method is this (based off of acts_as_taggable code - not'' DHHs,
but the original one):
def self.sql_to_count_plays(lookback)
sql =
2006 Jun 14
5
Rails SOAP tutorial
Hi all..
I new in Ruby/Rails.. Where could i get some good tutorial about SOAP
using Rails?
I''ve been googling yet still did''nt find good tutorial.
Thank you in advance.. :)
--
Regards,
Ananda Putra
2006 Jul 14
6
Don''t understand :: in ActionController::Base
Maybe this should apply to Ruby forums directly, but I''ll try here.
I understand the concept of classes and subclasses thanks to the
excellent "Programming Ruby - The Pragmatic Programmer''s Guide".
However, I don''t understand what :: signify in terms of inheritance,
parent and child in e.g.
ActionController::Base
--
Posted via http://www.ruby-forum.com/.
2007 Sep 24
3
Custom type
Hi.
I have a small problem with the custom type I am working on. I define
method ''evaluate'' which is called after all data is been collected. Here
it is:
module Puppet
newtype(:test) do
newparam(:name) do
end
newparam(:listen) do
defaultto "silent"
end
def evaluate
puts "evaluating..."
return super.evaluate
end