RailsCasts Pro episodes are now free!

Learn more or hide this

Sadiksha's Profile

GitHub User: sadiksha

Comments by Sadiksha


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

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.


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!