• 0

ruby on rails


Question

So, anyone have experience developing on rails? I am going through the tutorials and documentation playing around. But wanted to know if anyone had any cool projects they've been working on or completed using RoR, or if they had additional resources to help out with starting up, from development to deployment - that kind of stuff.

Thanks!

Link to comment
https://www.neowin.net/forum/topic/1008760-ruby-on-rails/
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  On 29/06/2011 at 15:09, ericnkatz said:

So, anyone have experience developing on rails? I am going through the tutorials and documentation playing around. But wanted to know if anyone had any cool projects they've been working on or completed using RoR, or if they had additional resources to help out with starting up, from development to deployment - that kind of stuff.

Thanks!

I use Rails for all of my personal websites. While I haven't done anything different with it, there are many sites out there that are powered by Rails (github.com, yellowpages.com, groupon, hulu). I'm not sure why you want to see something cool others have developed, but it's a web application framework and, like all web application frameworks, it is used to streamline the application development process. While showing you cool websites proves that other people are using it to create great sites, the difference between Rails and every other framework is in the code and how it accomplishes tasks. That's when you'll start to notice how Rails is different.

A few resources:

- http://www.railscasts.com

- http://www.peepcode.com

- http://ruby.railstutorial.org/

- http://guides.rubyonrails.org/

If you like books:

- Rails Tutorial (ebook is available on the site I linked above. You can also get the real book in a store)

- Agile Web Dev with Ruby on Rails (Make sure you buy the newest edition)

- Rails 3 Way (New people thought the book was too advanced for them. Read the reviews on this one. I liked it, but I'm also an experienced Rails developer)

For deployment, I would recommend Apache w/ Passenger (mod_rails) OR Nginx w/ Passenger (mod_rails). You have to use some *nix-based OS for the server. There are many tutorials out there on best practices. Linking to them here would be quite a job.

For development:

- What OS are you using? Some *nix (Unix, Linux, OS X) OS is preferred. While you will be able to develop apps on Windows, you'll notice that it's not the best dev platform for Rails. The performance isn't very good and some gems (Ruby libraries) are dependent on *nix.

- If you're using *nix, download and use RVM to download/install Ruby. (https://rvm.beginrescueend.com/) If you're using Windows, use Ruby Installer (http://rubyinstaller.org/). Make sure you download and install the development kit (http://rubyinstaller.org/downloads/) as well. Sometimes gems have to compile a native library. If you don't install the dev kit, you will have trouble installing these gems.

Link to comment
https://www.neowin.net/forum/topic/1008760-ruby-on-rails/#findComment-594112698
Share on other sites

  • 0
  On 29/06/2011 at 15:44, sbauer said:

I use Rails for all of my personal websites. While I haven't done anything different with it, there are many sites out there that are powered by Rails (github.com, yellowpages.com, groupon, hulu). I'm not sure why you want to see something cool others have developed, but it's a web application framework and, like all web application frameworks, it is used to streamline the application development process. While showing you cool websites proves that other people are using it to create great sites, the difference between Rails and every other framework is in the code and how it accomplishes tasks. That's when you'll start to notice how Rails is different.

A few resources:

- http://www.railscasts.com

- http://www.peepcode.com

- http://ruby.railstutorial.org/

- http://guides.rubyonrails.org/

If you like books:

- Rails Tutorial (ebook is available on the site I linked above. You can also get the real book in a store)

- Agile Web Dev with Ruby on Rails (Make sure you buy the newest edition)

- Rails 3 Way (New people thought the book was too advanced for them. Read the reviews on this one. I liked it, but I'm also an experienced Rails developer)

For deployment, I would recommend Apache w/ Passenger (mod_rails) OR Nginx w/ Passenger (mod_rails). You have to use some *nix-based OS for the server. There are many tutorials out there on best practices. Linking to them here would be quite a job.

For development:

- What OS are you using? Some *nix (Unix, Linux, OS X) OS is preferred. While you will be able to develop apps on Windows, you'll notice that it's not the best dev platform for Rails. The performance isn't very good and some gems (Ruby libraries) are dependent on *nix.

- If you're using *nix, download and use RVM to download/install Ruby. (https://rvm.beginrescueend.com/) If you're using Windows, use Ruby Installer (http://rubyinstaller.org/). Make sure you download and install the development kit (http://rubyinstaller.org/downloads/) as well. Sometimes gems have to compile a native library. If you don't install the dev kit, you will have trouble installing these gems.

Currently using OSX I have it installed and running on localhost:3000 going through the http://ruby.railstutorial.org/ tutorials right now. Guess I haven't looked at deployment yet since I don't really have an app worth deploying anywhere for now. I think I may definitely look at the real books once I get more comfortable and go through some of these other tutorial sites you shared.

Thank you!

Link to comment
https://www.neowin.net/forum/topic/1008760-ruby-on-rails/#findComment-594116582
Share on other sites

  • 0
  On 30/06/2011 at 17:24, ericnkatz said:

Currently using OSX I have it installed and running on localhost:3000 going through the http://ruby.railstutorial.org/ tutorials right now. Guess I haven't looked at deployment yet since I don't really have an app worth deploying anywhere for now. I think I may definitely look at the real books once I get more comfortable and go through some of these other tutorial sites you shared.

Thank you!

If you don't want to use the built-in server (maybe to test deployment or you'd rather just use apache to dev), install Passenger and then install Passenger Pane (https://github.com/Fingertips/passengerpane). It will add an item to system preferences that will let you easily add sites to the apache installation. It's pretty easy to use. It just creates vhosts in the background so it's not magic or anything, but it very easy to use when you're developing.

A lot of developers use some kind of open source tool for command-line deployments. I've used capistrano in the past. There are other ones out there though.

Link to comment
https://www.neowin.net/forum/topic/1008760-ruby-on-rails/#findComment-594116694
Share on other sites

  • 0
  On 30/06/2011 at 17:27, articuno1au said:

Sorry to tag onto this..

What's the advantage of developing with RoR as opposed to say ASPX.net?

I've never really had anyone explain why they use it over ASP/PHP et all.. Just curious >.<

There's a rather large difference between the two, especially if you're talking about ASP.NET WebForms (standard ASP.NET) and RoR. RoR follows the MVC pattern, while WebForms tries to recreate Windows development for the web (controls, event life cycle). If you like control over your HTML, and don't mind being exposed to what the web is, then ASP.NET WebForms would be a terrible choice. ASP.NET WebForms and RoR are so fart apart that they're not even comparable.

ASP.NET MVC is another framework created by Microsoft that puts an MVC architecture over the ASP.NET pipeline. While it uses a similar pattern, the two frameworks are still quite different. When you create an ASP.NET MVC project, you will see a few folders, a couple config files, and a layout. That's all. How you configure business logic, data access, and the routing is up to you. If you want to use an ORM, you will need to set that up. MVC ships with jquery, jquery validations, Microsoft Ajax, and that's pretty much it.

RoR, on the other hand, is very opinionated. It expects you to use the framework in a way that it was designed for. While this sounds bad, it's actually a good thing. Following its conventions will make your life very easy. There's no boiler plate code needed to setup a data layer since it comes with an ORM. Models are expected to go in the Model folder and routes, for the most part, can be standardized. You also don't have to think about how you're going to manage schema changes as ActiveRecord migrations does it for you. As a result, setup time is not usually a big deal.

Use ASP.NET over Rails if...

- You need to use Microsoft tools.

- You need to use a Windows server.

- You're comfortable with Microsoft and/or their developer tools.

- You can't use open source technologies.

Use ASP.NET WebForms over MVC if..

- If you want to add rich data features with little to no work.

- You don't care about the maintainability of your application.

- You like headaches.

Use ASP.NET MVC over WebForms if...

- You don't like the event driven approach of WebForms

- You want 100% control over your markup.

- You want to practice TDD (Test Driven Development)

- You want to use the MVC architecture.

Use RoR over ASP.NET if..

- You don't want to/can't use a Windows server.

- You don't use Windows at all.

- You like the Ruby scripting language more than C#/VB.NET.

- You would rather use a dynamic language, instead of a static language.

- You like the conventions that Rails enforces.

- You prefer open source technology.

Link to comment
https://www.neowin.net/forum/topic/1008760-ruby-on-rails/#findComment-594116748
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Rufus 4.8 brings performance boost for Windows ISOs by Sayan Sen Rufus, perhaps the most popular bootable USB media creation utility, has received a significant update with version 4.8. That's because there is a major shift toward faster and more efficient processing of Windows installation media by switching to wimlib for all Windows Imaging (WIM) handlings. The Rufus author says that the change has led to a significant improvement in speed when opening Windows ISOs, and this should be great for such users who tend to work with Windows installation files fairly regularly. Rufus notes that Wimlib’s integration speeds up the Windows ISO processing, reducing waiting times during image analysis. This boost in speed is said to be particularly noticeable when creating Windows To Go drives, although if you have a "crap" drive, it is best not to expect "miracles". For those wondering, Wimlib is an open source library for creating, extracting, and modifying Windows Imaging (WIM) archives, and it is cross platform too. Another key update in Rufus 4.8 is the introduction of file splitting for files over 4GB using the Alt-E key, for managing larger installation files; however, performance gains in this area are still modest when compared to the UEFI:NTFS handling. On the development side, Rufus 4.8 has moved exclusively to Visual Studio binaries. The full changelog is given below: Switch to wimlib for all WIM image processing: Greatly speeds up image analysis when opening Windows ISOs Can speed up Windows To Go drive creation Might help with Parallels limitations on Mac (But Rufus on Parallels is still unsupported) Enables the splitting of >4GB files with Alt-E (But still WAY SLOWER than using UEFI:NTFS) Switch to using Visual Studio binaries everywhere, due to MinGW DLL delay-loading limitations Add more exceptions for Linux ISOs that restrict themselves to DD mode (Nobara, openSUSE, ...) Improve reporting of UEFI bootloaders in the log, with info on the Secure Boot status Fix an issue with size limitations when writing an uncompressed VHD back to the same drive Fix a crash when opening the log with the 32-bit MinGW compiled version Fix commandline parameters not being forwarded to original Windows setup.exe To download Rufus 4.8, head over to Neowin software stories page. You can also download it from the official website or from its GitHub repo.
    • That's very interesting, thanks for the link!
    • When I hear "shady" I assume there is some element of being dishonest. There is nothing directly dishonest about publishing a crappy book, people have done that long before AI...it just took a lot more time. I am not about the proliferation of AI slop, so I hate this, but I wouldn't call it shady.
    • Soon(TM). When Elon Musky claims something is coming soon, that means 4-5 years late, 50% more expensive and still buggy as hell. Why are people still drinking his Koolaid? Also how stupid are investors still throwing at Tesla and Elon for all these years while they deliver no god damn results? Where are ever promised Robotaxies? Where is the Semi? Where is the Roadster? We already know the outcome of the Cybercock garbage container. Like, how stupid you have to be to still invest ANY money into Elon Musks stupidities?
    • Google Workspace brings 10 free AI features for nonprofit organizations by Aditya Tiwari Google has announced several updates for nonprofit and charitable organizations that use its products and services. For starters, the search giant is expanding the Google for Nonprofits program to more than 100 countries globally. Google for Nonprofits has been around for over a decade, offering products and services to eligible nonprofits for free or at discounted rates. One of its verticals is Workspace for Nonprofits, a paid tier that provides nonprofits with no-cost access to Gmail, Calendar, Meet, and its AI apps, such as Gemini and NotebookLM. Google is bringing ten new AI features to the Workspace for Nonprofits tier as part of its new updates. The company surveyed over 9,000 nonprofit organizations earlier this year and said that about nine out of ten nonprofits reported positive productivity gains when using AI apps and features. However, only one out of five reported that at least half of their organization uses AI. That said, these are the new features coming to Workspace for Nonprofits without paying any money: Gems Audio Overviews in Gemini app Image generation with people in Gemini app Canvas and quizzes in Gemini app Deep Research in Gemini app Google Vids with custom video clips powered by Veo 2 Two-way conversations with Gemini Live NotebookLM with Summaries, Audio Overviews (50+ languages and length adjustment) and Q&A Mind Maps in NotebookLM Discover Sources in NotebookLM Most of these features are available in other Workspace plans intended for regular businesses. Google's Nonprofits tier supports up to 2,000 employees or volunteers at $0/user/month, who can have professional email addresses, take part in 150-participant video meetings, and share a pooled cloud storage capacity of 1TB. Additionally, nonprofits can also place ads in Google Maps to connect with people at a local level. The company said that it's "expanding Ad Grants to run on eligible Google Maps placements in Performance Max campaigns free of charge." These ads in Google Maps can appear above, below or beside search results.
  • Recent Achievements

    • Apprentice
      Cole Multipass went up a rank
      Apprentice
    • Posting Machine
      David Uzondu earned a badge
      Posting Machine
    • One Month Later
      Stokenking earned a badge
      One Month Later
    • One Month Later
      Kevin Jones earned a badge
      One Month Later
    • Week One Done
      Kevin Jones earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      526
    2. 2
      ATLien_0
      260
    3. 3
      +Edouard
      194
    4. 4
      +FloatingFatMan
      180
    5. 5
      snowy owl
      134
  • Tell a friend

    Love Neowin? Tell a friend!