Truncating a String within a View - Ruby on Rails
Another 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 postLet's take a look at what I've broken today
Page 6 of 6
Another 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 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 post