Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Ruby on Rails

Ruby on Rails

Scheduled Pinned Locked Moved The Lounge
rubycsharpworkspace
27 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brisingr Aerowing
    wrote on last edited by
    #1

    In my quest to learn Ruby on Rails, I am installing a Rails development environment using Msys2[^]. It contains all the base packages (other than Rails and its dependencies) I need, such as Ruby, a compiler toolchain (GCC), and various libraries and utilities. I can post a link to the system I set up here if people want (I will have to find a place to upload it first, as it is very, very large, almost a Gigabyte in size!)

    Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

    Richard Andrew x64R G S M A 6 Replies Last reply
    0
    • B Brisingr Aerowing

      In my quest to learn Ruby on Rails, I am installing a Rails development environment using Msys2[^]. It contains all the base packages (other than Rails and its dependencies) I need, such as Ruby, a compiler toolchain (GCC), and various libraries and utilities. I can post a link to the system I set up here if people want (I will have to find a place to upload it first, as it is very, very large, almost a Gigabyte in size!)

      Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Brisingr Aerowing wrote:

      a compiler toolchain (GCC)

      I'm confused. I thought GCC was a C++ compiler. :confused:

      The difficult we do right away... ...the impossible takes slightly longer.

      R B L 3 Replies Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        Brisingr Aerowing wrote:

        a compiler toolchain (GCC)

        I'm confused. I thought GCC was a C++ compiler. :confused:

        The difficult we do right away... ...the impossible takes slightly longer.

        R Offline
        R Offline
        Ron Beyer
        wrote on last edited by
        #3

        RoR still needs to be compiled since it is distributed in source form. :-)

        1 Reply Last reply
        0
        • B Brisingr Aerowing

          In my quest to learn Ruby on Rails, I am installing a Rails development environment using Msys2[^]. It contains all the base packages (other than Rails and its dependencies) I need, such as Ruby, a compiler toolchain (GCC), and various libraries and utilities. I can post a link to the system I set up here if people want (I will have to find a place to upload it first, as it is very, very large, almost a Gigabyte in size!)

          Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          I don't know what value posting a link to something that large would be, but the steps, things to look-out for would make a great article :-) 'g'

          W 1 Reply Last reply
          0
          • B Brisingr Aerowing

            In my quest to learn Ruby on Rails, I am installing a Rails development environment using Msys2[^]. It contains all the base packages (other than Rails and its dependencies) I need, such as Ruby, a compiler toolchain (GCC), and various libraries and utilities. I can post a link to the system I set up here if people want (I will have to find a place to upload it first, as it is very, very large, almost a Gigabyte in size!)

            Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

            S Offline
            S Offline
            Sampath Lokuge
            wrote on last edited by
            #5

            Can you tell me, why you have decided to learn Ruby on Rails instead of ASP.net MVC ? :confused:

            My Tech Blog : Sampath Lokuge Tech Blog Nothing is Impossible for Willing Heart.

            M J 2 Replies Last reply
            0
            • B Brisingr Aerowing

              In my quest to learn Ruby on Rails, I am installing a Rails development environment using Msys2[^]. It contains all the base packages (other than Rails and its dependencies) I need, such as Ruby, a compiler toolchain (GCC), and various libraries and utilities. I can post a link to the system I set up here if people want (I will have to find a place to upload it first, as it is very, very large, almost a Gigabyte in size!)

              Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #6

              Out of curiosity, why did you choose Msys2 rather than RailsInstaller?[^] I've been using RailsInstaller for over a year now and have never had problems with it. Marc

              B 2 Replies Last reply
              0
              • S Sampath Lokuge

                Can you tell me, why you have decided to learn Ruby on Rails instead of ASP.net MVC ? :confused:

                My Tech Blog : Sampath Lokuge Tech Blog Nothing is Impossible for Willing Heart.

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #7

                Sampath Lokuge wrote:

                why you have decided to learn Ruby on Rails instead of ASP.net MVC ?

                I thought I'd answer that, as it's a question I keep asking myself as to whether I want to continue with RoR and/or include ASP.NET / MVC as well in my toolbox of technologies. I started with RoR over a year ago because that's what my client uses and I was taking over the web development. Looking at ASP.NET / MVC, it looks like Microsoft "borrowed" most of the concepts from RoR (who borrowed the concepts probably from somebody else), but anyways, it seems like it would be very easy to learn one once you know the other (and of course are familiar with the language itself.) That said, there is a huge base of developer support for RoR, and I'm not sure that places like NuGet have the same level of community contribution. Most of the stuff is of decent quality too. Because RoR is interpreted, it means that I don't have to recompile the app to see changes -- I can make changes to the model, controllers, and of course the views without having to restart the server. Makes development a breeze. Ruby is a cool language too, it's fun to work in, but it can also be seriously abused--things you just won't find in C# code, such as returning two completely different types from a function call. Marc

                S D 2 Replies Last reply
                0
                • M Marc Clifton

                  Sampath Lokuge wrote:

                  why you have decided to learn Ruby on Rails instead of ASP.net MVC ?

                  I thought I'd answer that, as it's a question I keep asking myself as to whether I want to continue with RoR and/or include ASP.NET / MVC as well in my toolbox of technologies. I started with RoR over a year ago because that's what my client uses and I was taking over the web development. Looking at ASP.NET / MVC, it looks like Microsoft "borrowed" most of the concepts from RoR (who borrowed the concepts probably from somebody else), but anyways, it seems like it would be very easy to learn one once you know the other (and of course are familiar with the language itself.) That said, there is a huge base of developer support for RoR, and I'm not sure that places like NuGet have the same level of community contribution. Most of the stuff is of decent quality too. Because RoR is interpreted, it means that I don't have to recompile the app to see changes -- I can make changes to the model, controllers, and of course the views without having to restart the server. Makes development a breeze. Ruby is a cool language too, it's fun to work in, but it can also be seriously abused--things you just won't find in C# code, such as returning two completely different types from a function call. Marc

                  S Offline
                  S Offline
                  Sampath Lokuge
                  wrote on last edited by
                  #8

                  Thanks Marc.It's very interesting.And same time, congratulations to you be an MVP in 2014 :)

                  My Tech Blog : Sampath Lokuge Tech Blog Nothing is Impossible for Willing Heart.

                  1 Reply Last reply
                  0
                  • M Marc Clifton

                    Out of curiosity, why did you choose Msys2 rather than RailsInstaller?[^] I've been using RailsInstaller for over a year now and have never had problems with it. Marc

                    B Offline
                    B Offline
                    Brisingr Aerowing
                    wrote on last edited by
                    #9

                    A more unixy environment, actually. Also has a ton of other useful packages for development.

                    Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                    T 1 Reply Last reply
                    0
                    • Richard Andrew x64R Richard Andrew x64

                      Brisingr Aerowing wrote:

                      a compiler toolchain (GCC)

                      I'm confused. I thought GCC was a C++ compiler. :confused:

                      The difficult we do right away... ...the impossible takes slightly longer.

                      B Offline
                      B Offline
                      Brisingr Aerowing
                      wrote on last edited by
                      #10

                      GCC has C, C++, Fortran, Obj-C, Obj-C++, Ada, and Java compilers.

                      Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                      1 Reply Last reply
                      0
                      • M Marc Clifton

                        Out of curiosity, why did you choose Msys2 rather than RailsInstaller?[^] I've been using RailsInstaller for over a year now and have never had problems with it. Marc

                        B Offline
                        B Offline
                        Brisingr Aerowing
                        wrote on last edited by
                        #11

                        I ended up hitting a bunch of errors with Msys2, so I am now just going to use RubyInstaller (2.0.0-p353) and install Rails on that. I am using RubyMine as the IDE (it is good).

                        Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                        M 1 Reply Last reply
                        0
                        • B Brisingr Aerowing

                          I ended up hitting a bunch of errors with Msys2, so I am now just going to use RubyInstaller (2.0.0-p353) and install Rails on that. I am using RubyMine as the IDE (it is good).

                          Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                          M Offline
                          M Offline
                          Marc Clifton
                          wrote on last edited by
                          #12

                          Brisingr Aerowing wrote:

                          so I am now just going to use RubyInstaller (2.0.0-p353) and install Rails on that.

                          It has Rails already pre-installed.

                          Brisingr Aerowing wrote:

                          I am using RubyMine as the IDE (it is good).

                          Indeed it is! Good luck, let me know if you run into any problems. Marc

                          B 1 Reply Last reply
                          0
                          • M Marc Clifton

                            Brisingr Aerowing wrote:

                            so I am now just going to use RubyInstaller (2.0.0-p353) and install Rails on that.

                            It has Rails already pre-installed.

                            Brisingr Aerowing wrote:

                            I am using RubyMine as the IDE (it is good).

                            Indeed it is! Good luck, let me know if you run into any problems. Marc

                            B Offline
                            B Offline
                            Brisingr Aerowing
                            wrote on last edited by
                            #13

                            RubyInstaller, not RailsInstaller. Last time I looked, RailsInstaller was out of date (I like to use the latest stuff when I can)

                            Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                            M 1 Reply Last reply
                            0
                            • B Brisingr Aerowing

                              RubyInstaller, not RailsInstaller. Last time I looked, RailsInstaller was out of date (I like to use the latest stuff when I can)

                              Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                              M Offline
                              M Offline
                              Marc Clifton
                              wrote on last edited by
                              #14

                              Brisingr Aerowing wrote:

                              RubyInstaller, not RailsInstaller.

                              Ah, my bad. Yes, RubyInstaller isn't up to version 2 of Ruby and Rails yet, but for my purposes, neither is my client's code, and at least in Rails, there are some significant breaking changes. Marc

                              1 Reply Last reply
                              0
                              • G Garth J Lancaster

                                I don't know what value posting a link to something that large would be, but the steps, things to look-out for would make a great article :-) 'g'

                                W Offline
                                W Offline
                                walterhevedeich
                                wrote on last edited by
                                #15

                                :thumbsup:

                                Signature construction in progress. Sorry for the inconvenience.

                                Damn you have the perfect signature - CBadger

                                1 Reply Last reply
                                0
                                • B Brisingr Aerowing

                                  In my quest to learn Ruby on Rails, I am installing a Rails development environment using Msys2[^]. It contains all the base packages (other than Rails and its dependencies) I need, such as Ruby, a compiler toolchain (GCC), and various libraries and utilities. I can post a link to the system I set up here if people want (I will have to find a place to upload it first, as it is very, very large, almost a Gigabyte in size!)

                                  Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                                  A Offline
                                  A Offline
                                  Adilson Carvalho
                                  wrote on last edited by
                                  #16

                                  Give a try to a vagrant box. There is one ready for RoR development here[^]. It runs a small linux server on a virtual box and forwards all needed ports to your computer, so you can keep your browser, your text editor (are you using Sublime?), git and so on on your machine. It is tricky to compile some gems on Windows, so it is much better to have a linux environment to handle it all. Hope this helped :)

                                  1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    Sampath Lokuge wrote:

                                    why you have decided to learn Ruby on Rails instead of ASP.net MVC ?

                                    I thought I'd answer that, as it's a question I keep asking myself as to whether I want to continue with RoR and/or include ASP.NET / MVC as well in my toolbox of technologies. I started with RoR over a year ago because that's what my client uses and I was taking over the web development. Looking at ASP.NET / MVC, it looks like Microsoft "borrowed" most of the concepts from RoR (who borrowed the concepts probably from somebody else), but anyways, it seems like it would be very easy to learn one once you know the other (and of course are familiar with the language itself.) That said, there is a huge base of developer support for RoR, and I'm not sure that places like NuGet have the same level of community contribution. Most of the stuff is of decent quality too. Because RoR is interpreted, it means that I don't have to recompile the app to see changes -- I can make changes to the model, controllers, and of course the views without having to restart the server. Makes development a breeze. Ruby is a cool language too, it's fun to work in, but it can also be seriously abused--things you just won't find in C# code, such as returning two completely different types from a function call. Marc

                                    D Offline
                                    D Offline
                                    Dan Neely
                                    wrote on last edited by
                                    #17

                                    Marc Clifton wrote:

                                    Because RoR is interpreted, it means that I don't have to recompile the app to see changes -- I can make changes to the model, controllers, and of course the views without having to restart the server. Makes development a breeze.

                                    I'm about 70 coding hours into a RoR/AngularJS/Coffeescript project (all 3 new to me); and am finding about 2/3rds of my debug time is being spent on issues that a compiled/strongly typed language would've called me out on immediately; even ignoring that VS (or even Eclipse) >> Sublime my dev rate's a lot slower than on other platforms.

                                    Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                                    M 1 Reply Last reply
                                    0
                                    • Richard Andrew x64R Richard Andrew x64

                                      Brisingr Aerowing wrote:

                                      a compiler toolchain (GCC)

                                      I'm confused. I thought GCC was a C++ compiler. :confused:

                                      The difficult we do right away... ...the impossible takes slightly longer.

                                      L Offline
                                      L Offline
                                      Luiz Monad
                                      wrote on last edited by
                                      #18

                                      GCC = GNU compiler collection. Not GNU C compiler.

                                      1 Reply Last reply
                                      0
                                      • D Dan Neely

                                        Marc Clifton wrote:

                                        Because RoR is interpreted, it means that I don't have to recompile the app to see changes -- I can make changes to the model, controllers, and of course the views without having to restart the server. Makes development a breeze.

                                        I'm about 70 coding hours into a RoR/AngularJS/Coffeescript project (all 3 new to me); and am finding about 2/3rds of my debug time is being spent on issues that a compiled/strongly typed language would've called me out on immediately; even ignoring that VS (or even Eclipse) >> Sublime my dev rate's a lot slower than on other platforms.

                                        Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                                        M Offline
                                        M Offline
                                        Marc Clifton
                                        wrote on last edited by
                                        #19

                                        Dan Neely wrote:

                                        and am finding about 2/3rds of my debug time is being spent on issues that a compiled/strongly typed language would've called me out on immediately;

                                        Absolutely. Duck-typing is a productivity-killer in my opinion. Type inference is another killer in an interpreted context. At least in F#, the IDE detects issues even before you compile the code, though it is possible to fool it. To help with that, what I do is the following: * I use very descriptive function names, variable names, and parameter names * I write very small functions that do just one thing * I comment every single function, describing the input and output types so I know how to use the function later on * I heavily comment the code * I refactor constantly -- as soon as I see some duplicate code, I refactor it into a single function * I step through every line of code (I tend to do that in C# as well, so it's not really a development hit) * I explicitly specify the return value, even if it's redundant. * Liberal use of white space. Notice I didn't say that I write tests or work in a TDD paradigm. The main reason is that it takes a while to fire up the unit tests, which is yet another hit on development time, not to mention writing the tests. Lastly, there's a lot of "idiomatic" Ruby which is really cool and sexy and geeky but is totally incomprehensible at first glance. I always refactor those into functions that explicitly state what's going on. The idea is that the high level code should tell me what it's doing, and the low level code tells me how it's doing it. Here's an example: How:

                                        Given comma separated values in a string, returns an array of strings, stripping leading

                                        and trailing whitespace.

                                        def csv_to_array(csv)
                                        array = csv.split(',').collect{|s| s.strip}

                                        array
                                        

                                        end

                                        What:

                                        Adds children (given in csv format) to an entity.

                                        def add_children(entity, csv_children)
                                        child_list = csv_to_array(csv_children)
                                        entity.add_children(child_list, self.project_id)
                                        end

                                        Hope that helps! (And gee, I think I'm going to copy this reply and post it on my blog!) Marc

                                        D 1 Reply Last reply
                                        0
                                        • B Brisingr Aerowing

                                          A more unixy environment, actually. Also has a ton of other useful packages for development.

                                          Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                                          T Offline
                                          T Offline
                                          thomas michaud
                                          wrote on last edited by
                                          #20

                                          Can't say I've tried RailsInstaller. I have used both rb.env and rvm. RVM is home heavy weight, but it's the reigning champion. rb.env is coming up fast though.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups