xtremelabs / xl-passbook-ruby

Apache License 2.0
16 stars 10 forks source link

Routes Error?? #7

Closed fyarad closed 11 years ago

fyarad commented 11 years ago

i get this on http://localhost:3000/v1/passes/event_passbook/ABC123

ActionController::RoutingError (wrong constant name passesController):

any idea??

thanks.

xtreme-andrei-dinin commented 11 years ago

can you please paste in the line of code from your router that handles this route

fyarad commented 11 years ago

get "v1/passes/event_passbook" => "Passbook::passes#get_pkpass", :defaults => {:pass_type_id => "pass.nixter.GuestList"}

ghost commented 11 years ago

You're missing the :id

get "v1/passes/eventpassbook/:id_"

On Tue, Dec 4, 2012 at 3:20 PM, fyarad95 notifications@github.com wrote:

get "v1/passes/event_passbook" => "Passbook::passes#get_pkpass", :defaults => {:pass_type_id => "pass.nixter.GuestList"}

— Reply to this email directly or view it on GitHubhttps://github.com/xtremelabs/xl-passbook-ruby/issues/7#issuecomment-11013938.

*

Roland Lopes Agile Engineer Tel: 416.879.5460 Email: rlopes@xtremelabs.com Skype: roland-xtreme

*

fyarad commented 11 years ago

thanks for your help!

but still got the same error....

Should I have at least one row on the table "event_passbooks" that the gem created to test it? I'm testing it on the iphone simulator

ghost commented 11 years ago

Let's take this off list, contact me on xtreme email.

On Tue, Dec 4, 2012 at 3:40 PM, fyarad95 notifications@github.com wrote:

thanks for your help!

but still got the same error....

Should I have at least one row on the table "event_passbooks" that the gem created to test it? I'm testing it on the iphone simulator

— Reply to this email directly or view it on GitHubhttps://github.com/xtremelabs/xl-passbook-ruby/issues/7#issuecomment-11014737.

*

Roland Lopes Agile Engineer Tel: 416.879.5460 Email: rlopes@xtremelabs.com Skype: roland-xtreme

*

xtreme-tanzeeb-khalili commented 11 years ago

Spelling mistake, should be:

get "v1/passes/event_passbook" => "Passbook::Passes#get_pkpass", :defaults => {:pass_type_id => "pass.nixter.GuestList"}

fyarad commented 11 years ago

Oooh yes! Now is working!! thanks!!