I'm sure I'm doing something stupid. Again.

0 views
Skip to first unread message

Tim Haines

unread,
Dec 18, 2009, 4:39:07 PM12/18/09
to wellrailed
Hey guys,

Any idea why a post to /myresource would be routed to index instead of create?  I have the resource setup correctly in routes..

Tim.

Wayne Carter

unread,
Dec 18, 2009, 5:41:36 PM12/18/09
to wellr...@googlegroups.com
Sounds like you're GETing instead of POSTing somehow (ie the wrong
HTTP method). How are you sending the request?

-------------------------------------------

This email is from Wayne Carter and may be confidential. If you
believe it was sent to you in error, please accept his apology.
Please send a reply back to Wayne so that it can be redirected to the
correct person.

Thank you

Sent from Wayne's phone.

> --
>
> You received this message because you are subscribed to the Google
> Groups "WellRailed" group.
> To post to this group, send email to wellr...@googlegroups.com.
> To unsubscribe from this group, send email to wellrailed+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/wellrailed?hl=en
> .

Tim Haines

unread,
Dec 18, 2009, 5:43:35 PM12/18/09
to wellr...@googlegroups.com
I had :method => :put hard coded in the form decl, so Form.serialize was overriding the method specified in Ajax.Request.

:-(

Wayne Carter

unread,
Dec 18, 2009, 5:45:05 PM12/18/09
to wellr...@googlegroups.com
I think I have also had that just due to indenting my button too far
to the left in HAML or doing something else in the view that loses the
connection between the button and it's form...

-------------------------------------------

This email is from Wayne Carter and may be confidential. If you
believe it was sent to you in error, please accept his apology.
Please send a reply back to Wayne so that it can be redirected to the
correct person.

Thank you

Sent from Wayne's phone.

On 19/12/2009, at 10:39 AM, Tim Haines <tmha...@gmail.com> wrote:

Tim Uckun

unread,
Dec 20, 2009, 11:57:35 PM12/20/09
to wellr...@googlegroups.com
On Sat, Dec 19, 2009 at 11:45 AM, Wayne Carter <wtca...@gmail.com> wrote:
> I think I have also had that just due to indenting my button too far
> to the left in HAML or doing something else in the view that loses the
> connection between the button and it's form...

This is why I don't use HAML.

I just don't like significant indentation. Actually it's one of the
reasons why I am using ruby instead of python.

Wayne Carter

unread,
Dec 21, 2009, 3:52:53 AM12/21/09
to wellr...@googlegroups.com
Yes, I could probably start making better use of autocomplete in the
editor. I just like not having the code cluttered with End, close
tags, etc. Also, I find undentation a reading aid and Sass is very
useful

-------------------------------------------

This email is from Wayne Carter and may be confidential. If you
believe it was sent to you in error, please accept his apology.
Please send a reply back to Wayne so that it can be redirected to the
correct person.

Thank you

Sent from Wayne's phone.

Tim Uckun

unread,
Dec 21, 2009, 4:51:03 AM12/21/09
to wellr...@googlegroups.com
On Mon, Dec 21, 2009 at 9:52 PM, Wayne Carter <wtca...@gmail.com> wrote:
> Yes, I could probably start making better use of autocomplete in the
> editor.  I just like not having the code cluttered with End, close
> tags, etc.  Also, I find undentation a reading aid and Sass is very
> useful


Yes. Sass is very useful.

Reply all
Reply to author
Forward
0 new messages