Errno::ECONNREFUSED in - Ruby on Rails
First 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 postLet's take a look at what I've broken today
Page 6 of 7
First 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 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 postWell, I’ve managed to break my app again today – getting the following error message: ActionController::RedirectBackError in OrdersController#new No HTTP_REFERER was…
Read postJust another one of those things that I find myself needing to do from time to time. Luckily this is all pretty straight forward (thankyou Ruby on Rails!). Assuming…
Read postJust another quick problem I ran into, the validation was indicating that an error had occurred however it did not show what the error was: 1 error prohibited this…
Read postJust a quick post on how to view a table’s structure in SQLite3. Again, not something I’ve broken yet – more something I seem to keep forgetting. Simply start Sqlite:…
Read postThis is a problem that had me confused for an embarrassingly long time. Rails wraps button_to elements within a form and a div. Unfortunately this will take up 100%…
Read post