Submit form_for to Custom Action - Ruby on Rails
Just another quick problem I ran into with rails this afternoon – how to submit a form_for to a custom action. Luckily there’s quite a bit on how to do this in the…
Read postLet's take a look at what I've broken today
Page 25 of 26
Just another quick problem I ran into with rails this afternoon – how to submit a form_for to a custom action. Luckily there’s quite a bit on how to do this in the…
Read postRan into a bit of a problem with jQuery today, not entirely sure what the issue was but apparently it did not like me using the .get() function. I received the…
Read postRan into another flash notice issue, my messages were not disappearing after the first view. My code was as follows: It turns out that all you have to do to fix this…
Read postI came across a bit of a weird one this afternoon when trying to validate. Several of my fields appeared to be incorrectly flagged as not having a value. This is the…
Read postFirst problem of the morning – Errno::ECONNREFUSED in ProductsController#create. This one was actually a little bit tricky – for me anyway. The error seemed to imply…
Read postWell, today I was looking through the Google Analytics overview of the WhatIBroke.com and I noticed a referral I hadn’t seen before from link.smartscreen.live.com. I…
Read postAnother quick post, just on how to truncate a string within a view. I used the following in order to ensure that my order_item title is never longer than 100…
Read postI came across an instance where I needed to add a link to flash notice tonight. Manually creating a hyperlink seems to work fine, however I was chasing a rubyish way…
Read postJust a quick post on how to set the text of a form submit button. By default, the tag will appear as follows: In order to change the text all you have to do is the…
Read postI managed to break my app again while playing around with the routes and a few redirects: No data received Unable to load the webpage because the server sent no data.…
Read post