Thank you for the railscast. I am having some problem redirecting the job to the resque-worker. I followed the similar steps as shown in the railscast. When I do
ruby
Resqueue.enqueue(SnippetHighlighter, @snippet.id)
I get the error that SnippetHighlighter is undefined in the rails server, not in the resque-web. I also have problem opening resque-web. It gives me strange error says: /usr/lib/ruby/1.8/net/http.rb:560: in 'initialize': getaddrinfo: Name or service not known(SocketError).
Does anyone here know what is wrong.? I am using Ubuntu 12.04.
Thank you for the railscast. I am having some problem redirecting the job to the resque-worker. I followed the similar steps as shown in the railscast. When I do
I get the error that
SnippetHighlighter is undefined
in the rails server, not in the resque-web. I also have problem opening resque-web. It gives me strange error says:/usr/lib/ruby/1.8/net/http.rb:560: in 'initialize': getaddrinfo: Name or service not known(SocketError)
.Does anyone here know what is wrong.? I am using
Ubuntu 12.04
.I am new to rails and pickle testing. I want to use polymorphic_path for post's comment's new page. Is there any way to write it?
I tried
when /^#{capture_model}(?:'s)? #{capture_model}'s (.+?) page$/
polymorphic_path(model($1, $2), :action => $3) (I am just guessing here)
It is giving "wrong number of arguments (3 for 2)" error.
Also for post's new page:
when /^#{capture_model}(?:'s)? (.+?) page$/
polymorphic_path(model($1), :action => $2)
It is giving ""undefined method `model_name' for NilClass:Class" error.
I am assuming that the polymorphic_path is for creating paths. Please correct me, if I am wrong!