MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

Ruby on Rails proved to be Multiplatform Programming Language.

Published on 28 June 13
0
0
Ruby on Rails proved to be Multiplatform Programming Language. - Image 1

Ruby on Rails is an open-source cross platform web application which is being popular so far as development and programming is concern. It follows the stack Push and Pop method which is again lies under the category of “Last in Fist Out” strategy.


Ruby on Rails is following the concept of object oriented programming where the classes are integrated and objects are called with the help of reference. Here is the example for you how you can create a object and call it through a reference.

#!/usr/bin/ruby -w

# define a class

class Box

# constructor method

def initialize(w,h)

@width, @height = w, h

end

# accessor methods

def printWidth

@width

end

def printHeight

@height

end

end

# create an object

box = Box.new(10, 20)

# use accessor methods

x = box.printWidth()

y = box.printHeight()

puts "Width of the box is : #{x}"

puts "Height of the box is : #{y}"
When the above code is executed, it produces following result:

Width of the box is : 10

Height of the box is : 20

Ruby on Rails is specially designed to achieve the special or we can say specific needs of the business so that the requirements are converted into the ready to use products and products are again in the form of software or a web application.
Ruby on Rails is bifurcating into various services or we can say it is been disburse into various forms of Object-Relational Mapping System, Web Services, Action Pack, Active Support and Action-Mailer. It is deployed with Ruby-Gems a package manager while for database server deployed with a database server such as MSSQL, or PostgreSQL and a web server such as Apache running the Phusion Passenger module.

The whole structure of Ruby is designed with the aim of using less coding and its pivots into the tasks and goals to be accomplished. It has some different syntax where the platform of Operating System changes say for MAC OS and Windows all you need to follow below instructions:-
  • For Mac OS X you need to open terminal
  • For Windows Choose “RUN” from start menu and type “cmd.exe” in command line.


After installing and verifying the current version you have to create a controller for example:-

$ Rails generate controller welcome index

Now you can start doing your coding stuffs the below is the example how you can get started with the help of Ruby Programming language:-

create app/controllers/welcome_controller.rb

route get "welcome/index"

invoke erb

create app/views/welcome

create app/views/welcome/index.html.erb

invoke test_unit

create test/controllers/welcome_controller_test.rb

invoke helper

create app/helpers/welcome_helper.rb

invoke test_unit

create test/helpers/welcome_helper_test.rb

invoke assets

invoke coffee

create app/assets/javascripts/welcome.js.coffee

invoke scss

create app/assets/stylesheets/welcome.css.scss

The above example will create several files and route to you.

What can we do with Ruby on Rails web development?

Ruby on Rails is for efficient content management system along with E-commerce Development, application development and Ruby on Rails is also used for Agile Based Application development.

Having the rapid development feature it also has Model View Controller architecture which helps use to divide the whole web structure into different methods so this is the reason why the development and the popularity of Ruby on Rails is in Demand.

Ruby on Rails is the innovative language where it is been integrated to the mobile application development the ruby and android integration with the help of using Ruby to access android API

Below is the example how you can do it:-
require 'ruboto.rb'

require 'linguistics'

include Linguistics::EN

 
import "android.telephony.SmsManager"

 
ruboto_import_widgets :Button, :EditText, :LinearLayout, \

:RadioGroup, :RadioButton, :TextView
And for configuration of the screen
$activity.handle_create do |bundle|

 setTitle 'Freddy\'s Fresh Fish'

 
 setup_content do

 linear_layout :orientation => LinearLayout::VERTICAL do

 text_view :text => "What would you like to order?"

 @group = radio_group do

 radio_button :text => "Tuna", :id => 0

 radio_button :text => "Trout", :id=> 1

 radio_button :text => "Salmon", :id => 2

 radio_button :text => "Crab", :id => 3

 radio_button :text => "Lobster", :id => 4

 end

 @quantity = edit_text :hint => "Quantity"

 button :text => "Place Order"

 end

end

This is the few coding example where you can use Ruby for Android Application Development

Entering into the innovative factors of web development Ruby is giving the tough competition to other programming language.

Duran Drake works with leading RoR Application Development Company based in chicago, I would like to share technology related articles of mobile, opensource, website design, HTML5 and more, love to share ideas, information about latest technology let’s connect with us @Twitter, Facebook, Linkedin and Google+
This blog is listed under Open Source and Development & Implementations Community

Related Posts:
Post a Comment

Please notify me the replies via email.

Important:
  • We hope the conversations that take place on MyTechLogy.com will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.
You may also be interested in
 
Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top