amacneil / cocktailrecipes

An example plugin for Craft CMS
MIT License
73 stars 7 forks source link

Saving ingredients results in 404 #6

Open carlo-laitano opened 10 years ago

carlo-laitano commented 10 years ago

Saving or creating a new Ingredient results in a 404. I'm using Craft 1.3.2465 at this moment. I'm trying to debug but have no idea what's going on.

jasonmccallister commented 10 years ago

Also having the same issue. I'm using this as my basis for learning to build plugins. Any updates would be greatly appreciated!

carlo-laitano commented 10 years ago

@themccallister, I talked with the guys from Pixel and Tonic and they explained that some stuff changed over version 1.1 and forwards on case sensitivity

If you go into the edit ingredient template take a look at the hidden form inputs. You should see this:

Change that to

The difference is the "r" in cocktailRecipes is capitalized. That should have Craft find the correct route to the controller and save without a 404.

amacneil commented 10 years ago

Thanks @carlolaitano! Care to make a pull request?

carlo-laitano commented 10 years ago

Sure. I'll do that tomorrow :) — Sent from Mailbox for iPhone

On Thu, Feb 6, 2014 at 2:15 PM, Adrian Macneil notifications@github.com wrote:

Thanks @carlolaitano! Care to make a pull request?

Reply to this email directly or view it on GitHub: https://github.com/adrianmacneil/cocktailrecipes/issues/6#issuecomment-34365612

seandelaney commented 10 years ago

I have ported this base plugin for craft 2.x, fixing this issue.

https://github.com/seandelaney/cocktailrecipes

Sean