-
Escaping Params Containing Periods (1)
on
Jim Neath (0) permalink
Just a quick one. Say you have a route like the following: map.resources :users And you’re using email addresses to look up users like: /users/jim@somewh... You’re going to run into an error along the lines of: Missing template users/show.com.erb in view path blah/app/views Which obviously isn’t what you want. To fix this, change your route to the following: map.resources :users, :requirements => { :id => /.*/ } Rejoice.Shared by brupm (0)Contribute comment -
Speeding Up Rails Development (9)
on
Jim Neath (0) permalink
Over the last few months I’ve realised that the speed at which I develop new projects is a lot quicker than it used to be. So I thought I’d share some of the things I’ve learned and also some quite obvious things (to me at least). Use a Base Application I’m obviously going to be horrifically biased due to the fact that I helped to develop Bort, but I think that base apps are the ...Shared by Brent (0) Carl Pelletier (0) Matt McKnight (3) Miriam (2) mwilliams (0) Robert Dempsey (3) Ted (1) Thiago (0) veilleperso (0)- Ted said: "Seriously, Just Buy a Fucking Mac" - great heading.
Contribute comment -
Self Clearing Floats in CSS (1)
on
Jim Neath (0) permalink
This is a quickie mainly to remind myself. My friend and fellow Fudge developer, Mike “1312” Byrne showed me a CSS trick to have divs clear themselves. div#container { height: 1%; } div#container:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } Brilliant. This works in Safari, Firefox and IE6+ as far as I know.Shared by veilleperso (0)Contribute comment -
Getting the Dimensions of a Flash (SWF) File (1)
on
Jim Neath (0) permalink
This is a just a quick post that will hopefully save some people a hell of a lot of time. If you’re trying to get the width and height of a flash file, a banner for example, then you can use the ImageSpec library by Brandon Anderson. You can checkout the code with the following: svn checkout http://ruby-image... vendor/plugins/ruby-imagespec Then call it in your code to get the dimensions of a flash movie. Say you’re ...Shared by jana4u (0)Contribute comment -
Bort! Now with OpenID! (1)
on
Jim Neath (0) permalink
Just a small update on Bort. Bort Project Page I decided to make a dedicated page for Bort, so I only have one place to keep up to date. Bort Project Page Open ID Authentication I’ve integrated OpenID with RESTful Auth on Bort in the new version. I’ll be perfectly honest though, I’ve never actually set up OpenID before, so I’d appreciate if people could take a look at it and let me know if ...Shared by brupm (0)Contribute comment
