top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why Ruby on Rails for the web development?

+2 votes
308 views

Any particular point why should I go for Rails to develop my website?

posted May 5, 2014 by Balwinder

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

There are lots of advantage of using Ruby on Rails.

1.DRY Principal( Don’t Repeat Yourself): It is a principle of software development aimed at reducing repetition of code. “Every piece of code must have a single, unambiguous representation within a system”

2. Convention over Configuration: Most web development framework for .NET or Java force you to write pages of configuration code. If you follow suggested naming conventions, Rails doesn’t need much configuration.

3. Gems and Plugins: RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing ruby programs and library.
Plugins: A Rails plugin is either an extension or a modification of the core framework. It provides a way for developers to share bleeding-edge ideas without hurting the stable code base. We need to decide if our plugin will be potentially shared across different Rails applications.

4. Scaffolding: Scaffolding is a meta-programming method of building database-backend software application. It is a technique supported by MVC frameworks, in which programmer may write a specification, that describes how the application database may be used. There are two type of scaffolding:
-static: Static scaffolding takes 2 parameter i.e your controller name and model name.
-dynamic: In dynamic scaffolding you have to define controller and model one by one.

5. Rack Support: Rake is a software task management tool. It allows you to specify tasks and describe dependencies as well as to group tasks in a namespace.

6. Metaprogramming: Metaprogramming techniques use programs to write programs.

7. Bundler: Bundler is a new concept introduced in Rails 3, which helps you to manage your gems for application. After specifying gem file, you need to do a bundle install.

8. Rest Support

9. Action Mailer

answer May 6, 2014 by Kapil Kapoor
Similar Questions
+4 votes

I need to develop an application which needs to authenticate user by verifying login name/password for both web access and API. I need the same controller to cater to both web and API. I can put the before_filter for the controller to make sure that user is logged-in and user_id is in session. But how do I design the controller that if the request comes as a rest web service request then before filter should not check session for logged user but should authenticate with login/password passed as parameters with request and then should go ahead whichever way the request came to controller.

I would really appreciate any code samples/links to sites which explain how to do that.

+1 vote

Not a question, my thoughts -

There are a number of companies engaged in offering Ruby on Rails application development or website designs. Benefits of ruby on rails development?

Quick website launch: In just a matter of 6 weeks you can have your complete website up and running compared to traditional methods that takes near about 12 weeks for web development. The factors behind its time saving results include- modular design, leaner code base and availability of existing plug-ins.

Easy to make changes: After the launch of websites, one can easily make relevant changes or modifications be it in terms of adding new features or making certain changes in the data model.

Cost effective: You need not spend more if you opt for custom Ruby on Rails development for your website. This is because of the ease and speed with which Rails helps in building modifying any website.

+1 vote

Rails seems to have a whole whack of them and I'm not sure which ones match my requirements. The library must:

  • be fully themeable; the overall layout is going to be made from scratch
  • allow custom content for pages (i.e. a developer-made page)
  • allow defining of different types of posts with different fields/data
  • support image upload for at least pages and preferably posts as well
  • be relatively easy to extract post content outside the CMS (e.g. for use in sending an e-mail digest)

Preferably it should:
- Be compatible with Rails 4
- allow individual pages to be user-edited with HTML/CSS after they've been created

Can anyone recommend one for me?

...