Allow HTML String - Ruby on Rails
Just a quick post on how to prevent escaping for HTML within a string. Simply use html_safe?. i.e. The following will show the bold tags as text: <b>GOOOOOOOGLE</b>…
Read postLet's take a look at what I've broken today
Page 14 of 16
Just a quick post on how to prevent escaping for HTML within a string. Simply use html_safe?. i.e. The following will show the bold tags as text: <b>GOOOOOOOGLE</b>…
Read postI came across a requirement today where I needed to find out when a user had last logged into PeopleSoft. The record PSACCESSLOG came in handy here, it stores all of…
Read postJust a quick post on another problem I ran into while setting up PaperClip. When attempting to submit a form WITHOUT an image I received the following error message:…
Read postI finally decided to replace all my existing code to handle images with Paperclip. I was following the screencast by Emerson Lackey, #134 Paperclip, however I ran…
Read postMy goal for today was to populate a record with all of the Australian postcodes and their corresponding suburb and state descriptions. To do this I had to complete…
Read postThis is just a quick post on how to connect to particular database via the console in PostGreSQL. First, make sure you’ve logged in – just swap my_app for your role…
Read postJust a quick post on how to stop an app on Heroku: This will display a static page to all visitors but still allows for migrations etc: Image unavailable in the…
Read postJust a quick problem I came across in SharePoint today when trying to edit a file: Unable to edit files uploaded to document library where url length is more than 260…
Read postJust another quick post – how to create a button which does not submit a form when it’s clicked: Let me know if you have any problems.
Read postJust a quick post on the command to start the rails console: Here’s the documentation, it provides a pretty good summary of all the commands you’re likely to need.
Read post