Showing posts with label ruby-on-rails. Show all posts
Showing posts with label ruby-on-rails. Show all posts

Tuesday, June 5, 2012

Unobtrusive dynamic form fields in Rails with jQuery


I'm attempting to get over the hurdle of dynamic form fields in Rails -- this appears to be something the framework doesn't handle very gracefully. I'm also using jQuery in my project. I have jRails installed, but I'd much rather write the AJAX code unobtrusively where possible.

Monday, June 4, 2012

Facebook how to check if user has liked page and show content?


I am trying to create a Facebook iFrame app. The app should first show an image and if the user likes the page, he will get access to some content.

Sunday, June 3, 2012

Is Ubuntu an acceptable distro for running a production server?


I'm not a great Linux expert, but I'm comfortable running my Ubuntu desktop. I've also got a little experience running Ubuntu as a server as well, for my home network.

Thursday, May 31, 2012

Capistrano to deploy rails application - how to handle long migrations?


So I am using Capistrano to deploy a rails application to my production server (apache+passenger) and at the moment deployment usually goes along the lines:

Wednesday, May 30, 2012

Ruby on Rails Server options


The whole issue of setting up a development server for my ruby on rails application confuses me. There is webrick, mongrel, passenger, apache, nginx and many more I am sure, and i dont really understand the different roles they play.

Monday, May 21, 2012

Ruby on Rails Server options


The whole issue of setting up a development server for my ruby on rails application confuses me. There is webrick, mongrel, passenger, apache, nginx and many more I am sure, and i dont really understand the different roles they play.

Friday, May 18, 2012

Rails date/time picker (hopefully jquery)


Looking for a date and datetime picker that will integrate fairly seamlessly with Rails. I'm sure some people must be using something similar. I have tried

Thursday, May 17, 2012

rails best practices where to place unobtrusive javascript


my rails applications (all 2.3.5) use a total mix of inline javascript, rjs, prototype and jquery. Let's call it learning or growing pains. Lately i have been more and more infatuated with unobtrusive javascript. It makes your html clean, in the same way css cleaned it up.

Redirect "myapp.com" to "www.myapp.com" in rails without using htaccess?


Using Morph Labs' Appspace to deploy a site means no automated way to redirect 'myapp.com' to 'www.myapp.com' (and no access to .htacess).

Sunday, May 13, 2012

Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)


My website has been broken since Dreamhost upgraded their servers a couple of weeks ago. I have been tearing my hair out trying to get it fixed and made some progress but am stuck on what is hopefully the final issue.

Friday, May 4, 2012

Alternatives to Yahoo Pipes


I've used Yahoo Pipes for some prototyping, but I'm unwilling reluctant to use it in full production as we'll have no control over it uptime etc.

Tuesday, April 3, 2012

Testing view helpers


I'm currently working on a Rails plugin used for generating iPhone specific HTML meta-tags. I'm trying to use ActionView::TestCase for unit tests but keep getting the same error. See file contents and error below. Any ideas or help would be much appreciated.