Josh Software

Ruby on Rails

josh ruby

Testing social networks using capybara, cucumber-rails, selenium – Josh Software

Testing social networks using capybara, cucumber-rails, selenium – Josh Software Integration of social networks is very common in every application. We have many gems are available for doing integration. But testing this social integration is complicated task. Using capybara with cucumber we can easily test this similar to the normal UI testing through capybara. Step …

Testing social networks using capybara, cucumber-rails, selenium – Josh Software Read More »

josh ruby

Ajax forms testing using capybara, cucumber-rails and selenium – Josh Software

Ajax forms testing using capybara, cucumber-rails and selenium – Josh Software Manual UI testing plays a crucial part in test life cycle. However doing the same UI testing on every other day will became tedious. By using cucumber with capybara we can transform these mundane tasks into some interesting learning. We can easily automate manual …

Ajax forms testing using capybara, cucumber-rails and selenium – Josh Software Read More »

josh ruby

Rails 3: Dashing to the Finish

Rails 3: Dashing to the Finish >Check out this SlideShare Presentation: Rails 3: Dashing to the Finishhttp://static.slidesharecdn.com/swf/ssplayer2.swf?doc=dashingtothefinish-100601025536-phpapp01&stripped_title=rails-3-dashing-to-the-finish&userName=wycatsView more presentations from Yehuda Katz.

josh ruby

Multiple Applications with Devise, Omniauth and Single Sign On – Josh Software

Multiple Applications with Devise, Omniauth and Single Sign On – Josh Software The best way to scale an application is to split the application business logic into different inter-communicable components. However, authenticating, authorizing and security raise concerns. OAuth comes to the rescue – and like a knight in shining armour – omniauth steals the show. …

Multiple Applications with Devise, Omniauth and Single Sign On – Josh Software Read More »

josh ruby

authlogic custom conditions for authentication – Josh Software

authlogic custom conditions for authentication – Josh Software >To Add custom conditions to authlogic finders first of all we need to override authlogic find_by_login method. class UserSession < Authlogic::Session::Base   after_validation :check_if_verified   find_by_login_method :find_by_login_and_deleted_method end Then we need to define overridden method inside User model class User < ActiveRecord::Base   acts_as_authentic   def self.find_by_login_and_deleted_method(login) …

authlogic custom conditions for authentication – Josh Software Read More »

josh ruby

validates_attachment_content_type always fails in IE 6 and 7 for jepg and png image – Josh Software

validates_attachment_content_type always fails in IE 6 and 7 for jepg and png image – Josh Software If you are using paperclip plugin for uploading images in your rails application and you are validating image format. Image format validation working in Firefox, safari but not in IE, even you are uploading image in correct format in …

validates_attachment_content_type always fails in IE 6 and 7 for jepg and png image – Josh Software Read More »

josh ruby

CMYK format images not displaying properly in IE 7 – Josh Software

CMYK format images not displaying properly in IE 7 – Josh Software I am using paperclip plugin in my application for  uploading images. But when I am uploading CMYK format image  then this format image not displaying in IE7 properly. after some search I got the following solution and it’s working. have added one line …

CMYK format images not displaying properly in IE 7 – Josh Software Read More »