The iPhone Helpers Plugin for Rails
I recently released a Rails plugin called rails-iphone-helpers. This helper makes it real easy to generate iPhone specific HTML tags such as the viewport and homescreen icon just to mention a few. All done in with Rails simplicity in mind. The plugin also got featured on RailsInside. Check it out over at GitHub.
Comments
Thank you for posting this. The instructions on github weren’t simple enough for an old guy like me! I used your “standard install” (rails plugin …) and while nothing happened for awhile, when control was returned to me my vendor/plugins directory still doesn’t contain your plugin. Then I tried the git submodule add method and after some ssh-key questions I was informed permission was denied. Clearly I’m missing a step or a whole section of rails plugin use knowledge! If you care to expand upon the steps to install and use the plug-in I’d be grateful.
To follow up, since there were so few files, I just created the directory structure and copied the files by hand. Additional instructions may be in order for us old folks! In config/initializers/mime_types.rb you need to have a line for the mime type :mobile. If you just uncomment the :iphone line and change the type from :iphone to :mobile this will suffice. Then your view files need to match that naming, so instead of index.iphone.erb you want index.mobile.erb For the good of the search engines, this was “rails 3.0.1”
Try this:
rails plugin install git://github.com/mptre/rails-iphone-helpers.gitPost a comment