768x90 Getting Online Shouldn't be Tough- $7.49 .com Domains at Go Daddy

Video Streaming in Ruby on Rails

Dream your application like youtube? First of all, this application is only working in UNIX Machine, and has not been tested to Windows. This article is taken from written of johndahl.First, install the gem:sudo gem install rvideo.Next, install ffmpeg and (possibly) other related libraries. This is documented elsewhere on the web, and can be a headache. If you are on a Mac, the Macports build is reasonably good (though not perfect). Install with:sudo port install ffmpeg.Or, for a better build (recommended),...

Send SMS using Ruby by Integrating Clickatell

--------------------------Summary--------------------------clickatell gem is served to you for sending sms from your ruby application or shell console. This way is only work in linux, BSD and OSX. To use this gem, you will need sign up for an account at the Clickatell website. Once you are registered and logged into your account centre, you should add an HTTP API connection to your account. This will give you your API_ID.--------------------------Proof of Concept--------------------------install...

Auto Complete Typing in Text Field [Ruby on Rails]

Before After-------------------------Summary-------------------------Auto complete is used to find suitable words automatically with corresponding data you wanted while you type it into your text field (check images above). It's so easy to implement it.-------------------------Proof of Concept-------------------------Requirement : products_controller.rb (default scaffold script), product.rb (ActiveRecord),...

Create USA States List For Your Ruby on Rails

This way is very simple and fast to make us states list for your view or drop down menu.ruby script/plugin install http://svn.techno-weenie.net/projects/plugins/us_states/<%=us_state_select :post, :state %>Simple right? Enjoy and good l...

Create Country List for Your Ruby on Rails Quickly

There's many sites that provide you country list in sql file, so you can import it to your database. I would like to introduce you ruby way to create country list for your drop down menu. Let's we start :gem install tzinforuby script/plugin install tzinfo_timezoneAdd the code below to your Application_helper.rbdef make_attributes(hsh)unless hsh.nil?output = ""hsh.eachdo key, valoutput << "#{key}=\"#{val}\""endendoutputenddef country_code_select(object, method, priority_countries=nil, options={},html_options={})countries...

Types of Render in Rails

There's many render types that we can use for our view. Rails Render is a strong method that helps you to render your web pages. It comes with many flavors including:Render Action : render an action in the current controller, you can specify if you want layout printed or not.render :action => "show_home_page", :layout=> false.Render partial: it renders part of your web page.render :partial => "left_menu" .Render template: render a page, the file path is relative to your application.render...

HTML Editor or Rich Text Editor for Your Ruby on Rails Apps

1 . Nice Edit Create your text area in your form_tag range<%= text_field "demo", "tea_poci", "id"=>"myArea2", :rows=>10, :cols=>22%>.Create additional button for option of using text editor or not. <%= submit_tag "Add Editor",:type => 'button', "onclick"=>"addArea2();" %> <%= submit_tag "Remove Editor",:type => 'button',"onclick"=>"removeArea2();" %>Put...

List of Websites of Useful Ruby on Rails Tutorials

AJAX powered chat in 3 hours on Ruby on Rails : Tutorial on creating simple Web chatroom Ajax on Rails : at ONLamp Beginner’s Guide to Rails, part 1 : series of tutorials at GodBit Building Ruby, Rails, LightTPD, and MySQL on Tiger : at Hivelogic Create a To Do List with Ruby on Rails - Beginner’s Tutorial : at thehua Distributing Rails Applications - A Tutorial : by Erik Veenstra Fast-track your Web apps with Ruby on Rails : at IBM Four Days on Rails : Tutorial in PDF at HomeLinux Getting Your...

Top 29 Websites for Ruby on Rails Demos

Ajax Scaffold : Generates a production ready, fully styled, interface for managing models AJAX Live Data Grid Example : Data sub-forms at Unspace.ca CalendarGrid : build output like a calendar at RubyForge.org CalendarHelper : methods are intended to make the use of the DHTML/JavaScript calendar as easy as possible ; at RubyOnRails Collaboa : a collaborative tool for developers using Subversion DynamicCalendarHelper : calendar with CSS ; by Jeremy Voorhis Eribium : a Rails CMS Hieraki2 : wiki engine...

List of request params

@request.env["name_of_params_object"] .source : http://wiki.rubyonrails.org/rails/pages/variablesinrequeste...

Pictures of VIP or Business Class from Any Airlines

click image to enla...

Compare your face to celebirty face

Hey Guys,This web is very fun and really can let your stress turn off. This site can compare your face to celebrity face and get your ancestor trough genealogy method.To compare your face to celebrity, you can go here :http://www.myheritage.com/FP/Company/tryFaceRecognition.phpStep 1:click picture to enlargeStep 2 :click picture to enlargeI dont want my handsome face like ...

Create Photo Gallery less than 10 MINUTES

There's many ways to create photo gallery, i want share my experience with very instant photo gallery. Begginer or advance can do it, it's easy. I am using windows OS, Ruby ruby 1.8.5. Let's Start your rubyStep 1 : Download Rmagick(2.3.0) & imageMagick(6.4.0) in 1 Package Here (Download Package). if you use linux, install imageMagick Library (sudo apt-get install libmagick9-dev) and then install rmagick (sudo gem install rmagick), after that skip step 2.Step 2 : extract package to /ruby/your_app/tmp,...

undefined method `require_gem' for main:Object

My Error was it :F:\ruby\pacochin>rake db:migrateF:/ruby/bin/rake.bat:24: undefined method `require_gem' for main:Object (NoMethodError)My Solution is:F:\ruby\pacochin>gem install --remote rake .And the error was kicked. Good Lu...

Rejected Google Holiday Logos

Supposed to be celebrating: Children’s Day 2003.Reason for rejection: Too childish. Supposed to be celebrating: 150 Years of Cigarettes.Reason for rejection: Too politically incorrect. Supposed to be celebrating: 50th Anniversary of Product Placement.Reason for rejection: Starbucks didn’t pay enough. Supposed to be celebrating: 5 Years of Google motto “Don’t be evil.”Reason for rejection:...

Access the blocked site freely

I really dont understand what happen in my government brain nowdays, Indonesia is not Religion Country, but why because of a movie, many important site are blocked by government request, examples are Youtube.com, Rapidshare.com and many things. Even I read on Okezone.com and Detik.com, the government will block all blog sites. It's damn jerk. My government never think that if they block many digital...

Action Mailer with Gmail or Another Email Account

[1] you can import svn http://svn.nanorails.com/plugins/action_mailer_tls/ to your /vendor/plugins/[2] edit your environment.rb by adding the last line this code:require "smtp_tls" ActionMailer::Base.raise_delivery_errors = false ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => "smtp.gmail.com", :port => 587, :domain => 'gmail.com', :user_name => "convert.ruby.to@gmail.com", :password => "rubyisred", :authentication...

Paginate Array Objects in Ruby

def paginate_collection(collection, options = {}) default_options = {:per_page => 10, :page => 1} options = default_options.merge options pages = Paginator.new self, collection.size, options[:per_page], options[:page] first = pages.current.offset last = [first + options[:per_page], collection.size].min slice = collection[first...last] return [pages, slice] endShorted way:@pages, @users = paginate_collection User.find_custom_query, :page => @params[:page]I...
 
powered by Blogger