Skip to main content

Useful Links for rspec and cucumber and jquery and css and facebook app integration for Ruby on Rails..

Some important links for rspec and cucumber and jquery and css and facebook app integration for Ruby on Rails######################
###########facebook links
http://www.spritle.com/blogs/2012/02/08/facebook-canvas-app-using-ruby-on-rails/
https://developers.facebook.com/apps/209871355801368/summary?save=1
http://stephan.com/blog/really-easy-facebook-like-for-rails
https://campus.tcs.com/campus/
#####cucumber testing.........
http://blog.spritecloud.com/category/cucumber/
http://www.packtpub.com/article/facebook-application-development-ruby-on-rails
http://blog.aentos.com/post/1114672143/testing-ajax-autocomplete-fields-with-cucumber-and
http://asciicasts.com/episodes/186-pickle-with-cucumber
http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Actions#click_button-instance_method
https://github.com/cucumber/cucumber/wiki/Cucumber-Backgrounder
https://github.com/jnicklas/capybara/
http://stackoverflow.com/questions/5794820/easy-way-to-test-nested-model-forms-with-cucumber
http://www.allenwei.cn/cucumber-capybara-what-we-need-for-rails-integration-test/
http://www.themomorohoax.com/2009/04/22/8-tips-for-testing-rails-apps-with-cucumber
http://ridingrails.net/rails-3-cucumber-started-outside-in-testing/
http://tinobox.com/wordpress/coding/rails-3-cucumber-started-outsidein-testing/
http://blog.joshsoftware.com/2011/07/26/testing-social-networks-using-capybara-cucumber-rails-selenium/
http://jquerytools.org/
http://apycom.com/# used for layouts
# unit testing
http://blog.jayfields.com/2006/12/rails-unit-testing-activerecord.html
#jquery link#######
########
###############
http://webdesignledger.com/tips/9-jquery-mistakes-you-shouldnt-commit
http://viralpatel.net/blogs/20-top-jquery-tips-tricks-for-jquery-programmers/
http://blog.pixelcrayons.com/web-design/some-important-jquery-tips-and-tutorials-for-web-designers/
http://tutorialzine.com/2011/06/15-powerful-jquery-tips-and-tricks-for-developers/
http://docs.jquery.com/Tutorials:5_Quick_jQuery_Tips
http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx
http://www.htmlgoodies.com/beyond/javascript/top-10-jquery-tips-and-tricks.html
http://www.problogdesign.com/coding/30-pro-jquery-tips-tricks-and-strategies/
http://blog.hashrocket.com/posts/jquery-tips-adding-filter-expressions
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> # we are using jquery it is faster
http://hscripts.com/tutorials/jquery/selecting-elements.html
http://ridingrails.net/social-media-buttons-rails-applications/
https://www.addthis.com/get/sharing#
http://programifications.com/sunspot-solr-on-rails-3
http://www.echoecho.com/javascript3.htm ######for javascript
http://www.htmldog.com/guides/cssbeginner/text/ ################cssssssssssssss
http://www.w3.org/TR/REC-CSS1/ ################cssssssssssssss
###########################
http://westciv.com/style_master/academy/hands_on_tutorial/09.laying_out.html
########javascript
http://www.quackit.com/javascript/tutorial/javascript_html.cfm
http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html#1
http://www.freewebmasterhelp.com/tutorials/javascript/
http://sureshruby.blogspot.in/
######installation of ruby on rails and rvm
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
http://old.thoughtsincomputation.com/posts/coding-gems-for-rails-3-part-1
http://pivotal.github.com/jasmine/
http://www.buzzle.com/articles/trick-questions-and-answers.html

Comments

Popular posts from this blog

Get the Current url in ruby on rails

request.refererrequest.fullpathrequest.fullpath.split("?")[0]request.referer or request.env['HTTP_REFERER'] your controller to get the referer url. 

--------------------
request.original_url
request.url
request.host_with_port
<link rel="canonical" href="<%= request.url %>" />
<%=request.path%>
How can I get the current absolute URL in my Ruby on Rails view?
The request.request_uri only returns the relative URL.
request.env['REQUEST_URI']

 For Rails 3.2 or Rails 4 you should use request.original_url to get the current URL. More detail.

For Rails 3: You want "#{request.protocol}#{request.host_with_port}#{request.fullpath}", since request.url is now deprecated.

For Rails 2: You want request.url instead of request.request_uri. This combines the protocol (usually http://) with the host, and request_uri to give you the full address

Gem::LoadError (Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).?

Gem::LoadError (Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).) In rails?


1)change the gemfile in mysql version
 gem 'mysql2'

2)Change to mysql2 version
 gem 'mysql2','0.3.20'

Active Scaffold : Add radio buttons to your form ruby on rails ?

Active Scaffold : Add radio buttons to your form ruby on rails ?

The way to add radio buttons to your active scaffold create/update from is as shown below

#Controller

class UsersController < ApplicationController
active_scaffold :user do |config|
config.label = “Users”
config.columns = [:name, :gender]
config.columns[:gender].form_ui = :radio
config.columns[:gender].options[:options] = [['Male', '1'], ['Female','2']]
end
end