Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Ruby on Rails 1.0 Released

Posted by ScuttleMonkey on Tue Dec 13, 2005 09:16 PM
from the web-deployment-made-easy dept.
Simon (S2) writes "Ruby on Rails 1.0 has been released. From the announcement: 'Rails 1.0 is mostly about making all the work we've been doing solid. So it's not packed with new features over 0.14.x, but has spit, polish, and long nights applied to iron out kinks and ensure that it works mostly right, most of the time, for most of the people.' " The Ruby on Rails website has also been given a new look.

Related Stories

[+] Apple Publishes Ruby On Rails Tutorial 228 comments
bonch writes "Apple has noticed the high amount of Mac usage in the Ruby on Rails community and has posted an illustrated Ruby on Rails tutorial. The document goes into more concise detail in getting new users up to speed, from database schema to moving beyond scaffolding, all done with the favored Rails editor, Textmate."
[+] Exploring Active Record 266 comments
An anonymous reader writes "Everyone knows that no programming language is a perfect fit for every job. This article launches a 'new series by Bruce Tate that looks at ways other languages solve major problems and what those solutions mean to Java developers. He first explores Active Record, the persistence engine behind Ruby on Rails.'"
[+] IT: Ruby On Rails Goes 1.1 255 comments
MrByte420 writes "The Ruby On Rails team today released version 1.1 of the web framework. From the announcement: 'Rails 1.1 boasts more than 500 fixes, tweaks, and features from more than 100 contributors. Most of the updates just make everyday life a little smoother, a little rounder, and a little more joyful.' New features were examined back in February at Scottraymond.net and include Javascript/AJAX integration, enhancements to active record, and enhanced testing suites. Not to mention upgrading this time promises to be a piece of cake."
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • Commercial equivalent is...? (Score:4, Interesting)

    by cytoman (792326) on Tuesday December 13 2005, @09:22PM (#14252813)
    When talking about commercial software like MS Office, we talk about the "Open source equivalent" OpenOffice.org and stuff like that. I'm curious to know whether there is a commercial equivalent to Ruby on Rails.
  • It just works... mostly (Score:5, Interesting)

    by cerelib (903469) on Tuesday December 13 2005, @09:26PM (#14252833)
    Screw that overstated "It just works" stuff. I like the truthfulness of their statement, "it works mostly right, most of the time, for most of the people"
  • Er (Score:5, Interesting)

    by Trip Ericson (864747) on Tuesday December 13 2005, @09:30PM (#14252860)
    (http://www.rabbitears.info/)
    Excuse me for sounding dumb, but what is Ruby on Rails? I've heard a lot about it recently, but haven't the slightest clue what it is. A little bit of background would be most appreciated.
    • Re:Er by bhirsch (Score:2) Tuesday December 13 2005, @09:32PM
      • Re:Er by byolinux (Score:2) Wednesday December 14 2005, @07:23AM
        • Re:Er by bhirsch (Score:2) Wednesday December 14 2005, @08:02PM
    • Re:Er (Score:5, Informative)

      by BrynM (217883) * on Tuesday December 13 2005, @09:33PM (#14252879)
      (http://www.brynmosher.com/ | Last Journal: Monday August 27, @10:15PM)
      Excuse me for sounding dumb, but what is Ruby on Rails? I've heard a lot about it recently, but haven't the slightest clue what it is. A little bit of background would be most appreciated.
      Here's [rubyonrails.org] some fliks to explain.
      [ Parent ]
      • Ahem... by mcrbids (Score:3) Tuesday December 13 2005, @10:45PM
        • Re:Ahem... by mortonda (Score:2) Wednesday December 14 2005, @12:38AM
          • Re:Ahem... by mcrbids (Score:2) Wednesday December 14 2005, @01:52AM
            • Re:Ahem... by killjoe (Score:2) Wednesday December 14 2005, @02:51AM
            • Re:Ahem... by jaydonnell (Score:1) Wednesday December 14 2005, @12:15PM
        • Re:Ahem... by jaydonnell (Score:2) Wednesday December 14 2005, @12:21PM
        • Re:Ahem... by marcello_dl (Score:2) Wednesday December 14 2005, @03:54PM
        • 2 replies beneath your current threshold.
    • Re:Er by ucahg (Score:3) Tuesday December 13 2005, @09:34PM
    • Watch this video (Score:5, Informative)

      by ravenspear (756059) on Tuesday December 13 2005, @09:35PM (#14252891)
      This [rubyonrails.org] is a 15 min presentation someone did setting up a weblog using it. I think this example better explains it than most descriptions I've read.
      [ Parent ]
      • Re:Watch this video (Score:4, Interesting)

        by Matt Perry (793115) on Tuesday December 13 2005, @10:27PM (#14253125)
        Since the web site is slashdotted (and the video too) could you explain what it is and why someone would want to use it?
        [ Parent ]
        • That is one sexy video. (Score:5, Informative)

          by Inoshiro (71693) on Tuesday December 13 2005, @11:17PM (#14253333)
          (http://inoshiro.com/)
          Basically, Ruby on Rails saves you lots of hassle.

          About 5 years ago, if you wanted to make a blog, you'd sit down and design a database schema. You'd design a controller that would have certain actions. You'd write a bunch of templates that would have variable locations. You'd extend the controller to use these templates from the db to make views. You'd write pages which allowed editing of these values. You'd write code for sanity checking. You'd write unit tests. You'd do everything over again that you'd done before.

          Slashcode, Scoop, you name it -- they were all written through the same ideas.

          Ruby on Rails makes all the redundant parts go away. In the video (which I just watched, and finally gives me a compelling reason to learn and use Ruby), the person sits down and generates a basic controller for their blog. They then show that the basic templates generated will show text. It takes another 5 minutes to define a db called posts and generate a default action for it. The code is smart enough to just directly make the things like title and body editable widgets on the page. 5 minutes to have posted blogs!

          Then the video takes 5 minutes to extend this by writing about 15 lines of code. This has a big effect: the listing of posts is abstracted out into a block that can be included in any page. The ordering is reversed. The title attribute is made a required field.

          But what good is a blog without comments? In the final 5 minutes, the author quickly adds a comment table, generates a comment controller, says that posts own comments, sticks in 3 lines of code in the post view segment which do a foreach associated comment, display, and then adds a page to edit comments. They also (at the same time) show us the basics of the unit-testing framework you get "for free" (the basic test is return true, but he changed it to test if the comment post code worked with another 4 lines of code).

          The entire thing took 15 minutes to write and had 58 lines of code. When the db schema changed, the code adapted -- the programmer did not have to rewrite the code. When the programmer wanted to change anything, the code would quickly bend itself to the task.

          I dare say it's the sexiest thing I've seen yet. If they ever release a version 2 that allows for simple Javascript on the client for AJAX interfaces, there will be only 1 game in town for web development!

          I'm not inexperienced in web design. I have written my own stuff to test ideas out, as well as participated in Scoop's development to a degree. Recently I've been playing with Drupal because all the basics are setup with it, and you can just extend it with modules. I can honestly say that while it took me an hour to setup Drupal (and another hour to get it completely to how I liked it) it a test config, I could probably replicate the base distribution plus the modules I use in Ruby on Rails within a day -- maybe 2, if I'm slow. It's that effective!
          [ Parent ]
        • Re:Watch this video by bigbadunix (Score:1) Tuesday December 13 2005, @11:21PM
        • Re:Watch this video by chris_eineke (Score:3) Wednesday December 14 2005, @01:40AM
        • 1 reply beneath your current threshold.
      • 2 replies beneath your current threshold.
    • Re:Er by Btarlinian (Score:3) Tuesday December 13 2005, @09:36PM
    • Re:Er by noamsml (Score:2) Tuesday December 13 2005, @09:42PM
    • Re:Er by Fishstick (Score:2) Tuesday December 13 2005, @09:53PM
      • convention over configuration (Score:5, Interesting)

        by soundofthemoon (623369) on Wednesday December 14 2005, @01:42AM (#14254054)
        You're trying to be funny, but you've got the only comment so far that mentions what I consider to be the most significant thing about Rails - convention over configuration. One reason why Rails development is so fast and often enjoyable is that you don't have to muck about with a lot of XML config files. If you just follow the path of least resistance, things just work out right.

        The MVC triad in Rails uses the ActiveRecord class for the model part. ActiveRecord is an ORM (Object Relational Mapping) class that follows a few clever rules about doing the mapping, so most of the time you don't have to repeat your mapping multiple times. If you have a "User" class, it knows to look for a table in the db called "users", and assumes the primary key is an integer named "id". A foreign key to an account record is assumed to be called "account_id". The creation time of a record is assumed to be a datetime named "created_at". All common elements have reasonable defaults, so when you are working on your app, you don't need to spend a lot of time mucking about with config files to specify stuff that is just so fracking obvious that it is a waste of your time to type it.

        Rails is not all things to all programmers, but it has certainly hit the sweet spot for a huge class of web applications - database backed interactive sites. The Rails design is good for probably 90% of the sites that I use most.

        As for coder jollies, well, it's been a while since I enjoyed programming. With Rails I've regained my enjoyment for programming enough that I'm considering doing that for the main part of my work again.
        [ Parent ]
    • Re:Er by GoofyBoy (Score:2) Tuesday December 13 2005, @11:05PM
    • Re:Er by TangoCharlie (Score:2) Wednesday December 14 2005, @03:23AM
    • 1 reply beneath your current threshold.
  • When? (Score:3, Interesting)

    by E IS mC(Square) (721736) on Tuesday December 13 2005, @09:37PM (#14252907)
    Agree that Ruby on Rails has got some traction. But when would it get enough traction to be used as a standard framework for web apps at enterprise level?

    I am working in tech division of a financial firm, and I put question to our big app dev group if anybody had worked on RoR for a project - and most people had no idea what I was talking about.

    Please note that right now almost everybody in the firm uses java/j2ee - for everything - even for batch processing which can be easily done with simple perl scripts!
    • Re:When? by Potato Battery (Score:1) Tuesday December 13 2005, @09:49PM
    • Re:When? by killjoe (Score:2) Tuesday December 13 2005, @10:18PM
    • It's not marketed like Java was. by CyricZ (Score:2) Tuesday December 13 2005, @10:35PM
    • Re:When? (Score:4, Informative)

      by w42w42 (538630) on Tuesday December 13 2005, @10:49PM (#14253224)

      If you have to use Java, a copy-cat framework for Java is Trails [java.net]. The linked articles make it look pretty impressive.

      Another relatively unknown java framework I've flirted with very recently is Stripes [mc4j.org]. It's claim to fame is that its configuration is annotation based. Dev consists of the view and action, no worrying about an xml file to sync between the two.

      [ Parent ]
    • Re:When? by dsci (Score:2) Tuesday December 13 2005, @10:59PM
      • Re:When? by Saint V Flux (Score:1) Wednesday December 14 2005, @12:42AM
    • Re:When? by kfg (Score:1) Tuesday December 13 2005, @11:21PM
    • Re:When? by julioody (Score:1) Tuesday December 13 2005, @11:35PM
      • 1 reply beneath your current threshold.
    • One word (Score:5, Insightful)

      by hey! (33014) on Wednesday December 14 2005, @06:41AM (#14254975)
      (http://kamthaka.blogspot.com/ | Last Journal: Wednesday March 30 2005, @03:18PM)
      Prototype.

      Next time there is a project to X, do a prototype of some of the functions in RoR, ostensibly so you can get it done in a couple of days and you can use it to figure out requirements. After playing with a couple of days, sit back and watch as the app dev group spends a month laying the keel for their "enterprise" class implementation. Continue to use your prototype to demonstrate new requirements (they always come up). If, after three or four months, the app dev group doesn't appear close to being able to deliever any business value, then one question that management should raise is what, exactly, is the property of "enterprise" that justifies the difference in effort between rails and whatever they're using. Then determine if it could indeed be put in the RoR prototype. If so, you're in. If not, you've contributed to requirements understanding and live to fight another day.
      [ Parent ]
      • 1 reply beneath your current threshold.
    • 3 replies beneath your current threshold.
  • compatibility (Score:4, Interesting)

    by Douglas Simmons (628988) on Tuesday December 13 2005, @09:37PM (#14252909)
    (http://assambassador.com/)
    I'd figuratively pee on my copy of Macromedia Flash if I knew a Blender 3D plugin had proliferated widely -- meaning if IE bundled it. Is this language/framework's new thinking done on the server side and to the clients it'd be business as usual, great, I'll put down my php book. What's the deal in this regard?
  • A better solution than PHP. (Score:3, Interesting)

    by CyricZ (887944) on Tuesday December 13 2005, @09:42PM (#14252929)
    Ruby on Rails provides a far superior solution for web sites than PHP in many cases. It would be excellent if it ended up usurping PHP for most PHP-based sites.

    PHP's bad reputation with regards to its security is, unfortunately, harming the open source community. Managers who are considering switching to open source solutions are hearing about the security flaws in PHP, and mistakenly thinking that Apache, MySQL and Linux are insecure (due to the popular 'LAMP' association). Of course, that isn't the case by a long shot.

    Regardless of what people switch to, the main focus needs to be on moving away from PHP. Ruby on Rails provides a rapidly maturing alternative for building all sorts of web sites.

    • Re:A better solution than PHP. by 6*7 (Score:1) Tuesday December 13 2005, @09:58PM
    • Heh. Right. by everphilski (Score:2) Tuesday December 13 2005, @10:09PM
      • You speak of momentum. (Score:5, Insightful)

        by CyricZ (887944) on Tuesday December 13 2005, @10:17PM (#14253090)
        Only an individual new to the computing industry would put much faith in "momentum".

        I've been around it for decades. I remember when Honeywell and Data General had "momentum". I'd be surprised if you've ever even seen a picture of their hardware.

        A bit later there was CP/M. And Apple. Apple had much "momentum" in the 1980s, only to almost hit rock bottom. At least they've been able to pick themselves up again.

        There was even talk this morning about Java losing its "momentum".

        Ruby on Rails could very well overtake PHP quite quickly.

        While some onus does rest on developers to develop quality code, that does not mean that the language and any implementations should not take steps to limit the ability of the programmer to write faulty code.

        That holds especially true for languages that are used in hostile environments, such as the WWW. Considering that Web development is touted as PHP's strong point, one would think it would have excellent security. Of course, we know from experience that that is not the case.

        Ruby won't necessarily make your code perfect. But Ruby, along with sound development techniques (unit testing, for example), will result in very secure applications. The use of PHP, on the other hand, is basically an invitation for security issues. It is not a well designed language, and it is not well implemented.

        [ Parent ]
      • 4 replies beneath your current threshold.
    • A rather large problem by wyldeone (Score:3) Tuesday December 13 2005, @10:41PM
    • Re:A better solution than PHP. by Anonymous Coward (Score:1) Wednesday December 14 2005, @12:35AM
    • Re:A better solution than PHP. by j1ggl3x (Score:2) Wednesday December 14 2005, @02:03AM
    • Re:A better solution than PHP. by CyricZ (Score:2) Tuesday December 13 2005, @11:04PM
    • Re:LAMR by gumpish (Score:1) Wednesday December 14 2005, @01:41PM
    • 6 replies beneath your current threshold.
  • Commercial/Enterprise use? (Score:4, Interesting)

    by feNIX77 (512228) on Tuesday December 13 2005, @09:54PM (#14252982)
    I've heard plenty about RoR on Slashdot - but to be honest, thats about where it stops. Does anyone have any experience or views deploying a medium/high volume commercial or enterprise solution using this?

    I have yet to personally see RoR in either situation and I don't know anyone who has - I'm not knocking RoR, just curious how it's actually being used.
  • Rails Day (Score:2)

    by coldtone (98189) on Tuesday December 13 2005, @09:54PM (#14252983)
    (http://building-cl1p.blogspot.com/)
    Will there be another railsday, like the one they had last June?
  • New Look? (Score:5, Funny)

    by bullitB (447519) on Tuesday December 13 2005, @10:04PM (#14253032)
    The Ruby on Rails website has also been given a new look.

    Would that be the "Service Unable: Damn You Slashdot" look?
  • Perl people, check out Catalyst (Score:5, Informative)

    by kstumpf (218897) on Tuesday December 13 2005, @10:14PM (#14253067)
    This is an MVC framework for Perl that resembles RoR in a lot of ways.

    http://catalyst.perl.org/ [perl.org]

    It's very nice so far, especially the controller portion. There's lots of addons and plugins for it, all of which are entirely optional. It's actually very open-ended and easy to extend.

    I use the controller classes extensively, but write my own model, view, and support classes. Catalyst culture seems to encourage Class::DBI parentage as a base model class, but it's simple to roll your own (I hate CDBI, so I based mine on Ima::DBI instead). Your classes can work independently of Catalyst... it imposes no restrictions or inheritance constraints on you. Worth checking out.
  • Give ruby a quick try first (Score:5, Informative)

    by mixonic (186166) on Tuesday December 13 2005, @10:28PM (#14253130)
    (http://madhatted.com/)
    I heartily suggest that the curious among you check out http://tryruby.hobix.com/ [hobix.com]. It's a great, quick interactive introduction to ruby. You can kick around the tires (so to speak) without needing to do anything more than visit the webpage. It's a great language with or without rails.

    Also a great example of Ajaxy goodness, not to buzzword it too much. It's written by the affluent and creative why. Check out his neat-o blog too: http://redhanded.hobix.com/ [hobix.com]

    -mix
  • Why rails annoys me... (Score:5, Interesting)

    by porkThreeWays (895269) on Tuesday December 13 2005, @10:31PM (#14253145)
    I love Ruby. Once I discovered Ruby, it's become my prefered general purpose language. I love the fact it's a pure object oriented language. I love it's consisiveness. I love it's lack of "funny" characters (for the most part).

    I freakin' can't stand using Rails. I remember getting very excited about it when I first discovered it. Watching apps being developed in 15 minutes. I read all the tutorials. I even bought the book from pragmatic programmer. I studied and wrote programs for 3 weeks. And I just could never get into it. On so many occasions I just felt cheated. It was all valid ruby code, but it just didn't seem in the spirit of ruby. My namespace was cluttered with a million methods. The names of which didn't seem logical and_reminded_me_of_php_function_names_rather_than_ an_object_oriented_language (anyone who's farmiliar with rails will understand the underscores). During those 3 weeks I just couldn't enjoy programming and couldn't get into it. I tried 2 more times over the next 2 months to try it again, but the same thing.

    The biggest annoyance was automated code generation. It was almost pointless for me. If I made changes to the database, I either had to a) wipe the directory and start over reimplementing my changes. Or b) go through all the MVC code and find the references to the database. Well, this is what I have to do in most other web languages anyway! So what's the advantage? Scaffolding was great at this because it did everything dynamically. However, you can't reasonably keep the scaffolding because it's not meant to be your program. It's meant to be support around your program.

    The experience seemed more like programming in php with a twist of mod_perl. All the reasons I wanted to get away from perl and php for web programming were back when I tried to write a large application. Rails just doesn't seem in the spirit of Ruby. It's not bad. Don't get me wrong. But it's not this revolutionary framework so many people would have you believe. Sure, it's great to show the 15 minute video. But I'd like to see the video of someone doing a large project in rails.
    • Re:Why rails annoys me... (Score:5, Interesting)

      by onlyjoking (536550) on Tuesday December 13 2005, @11:07PM (#14253299)
      Rails seems to be to web development what Dreamweaver is to HTML authoring. Nice and visual at first then you discover how it starts to get in your way. Give me Perl and Emacs any day.
      [ Parent ]
    • Re:Why rails annoys me... by aemadrid (Score:1) Tuesday December 13 2005, @11:07PM
      • 1 reply beneath your current threshold.
    • Re:Why rails annoys me... by draed (Score:2) Tuesday December 13 2005, @11:16PM
    • Re:Why rails annoys me... by TheVoice900 (Score:2) Tuesday December 13 2005, @11:22PM
    • Re:Why rails annoys me... by Red Pointy Tail (Score:2) Tuesday December 13 2005, @11:35PM
    • Nitro? by Colonel Panic (Score:3) Wednesday December 14 2005, @01:02AM
      • Re:Nitro? by booch (Score:2) Friday December 16 2005, @02:18PM
    • Re:Why rails annoys me... (Score:4, Interesting)

      by pkphilip (6861) on Wednesday December 14 2005, @01:54AM (#14254109)
      (Last Journal: Monday November 07 2005, @04:35AM)
      I think this is a problem with ALL frameworks which try and do a lot of automatic code generation - if you want any modifications done, it becomes really difficult. All high-level frameworks are written optimized for a certain type of solution and if what you are trying to do does not fit into that style perfectly, you are going to have some real problems. This is true for RoR, Django, Turbogears, and most software.

      This is one of the reasons J2EE still exists - individual components of it do a lot, but you will need to spend the time to put all of those together and make them work together. But J2EE has a few design faults and looks like it was designed by a committee more concerned about "Descriptive" programming than about getting software developed. This makes J2EE a pain-in-the-ass to work with.

      A simplified version of J2EE - with a minimal number of crappy XML descriptor files will be a good base framework.

      A fairly good framework which I use is Webware for python - it does not generate a lot of code and stuff, but it provides the essential mechanisms which you can use for getting the work done. It will take longer to code in than RoR but it is far more flexible and is kinda similar to J2EE but without the crap. http://www.webwareforpython.org/ [webwareforpython.org].

      The only problem with using Python, Ruby etc is that as they are not strongly typed, you will not find out some problems at compile time and these problems will only show up at runtime, unlike in Java.
      [ Parent ]
    • Re:Why rails annoys me... (Score:4, Informative)

      by l00k (910333) on Wednesday December 14 2005, @04:43AM (#14254680)
      I love it's lack of "funny" characters (for the most part).

      if you're referring to a lack of odd people in the ruby community you'll be horrified to know there's many.

      thanks for your post, all valid opinion .. i just suspect you're one of these highly intelligent programmers that trip over some minor features you find annoying and then blow your frustrations out of perspective.

      (anyone who's farmiliar with rails will understand the underscores)

      granted some of the method names are overly verbose! i've thought that often when looking through the APIs and docs. but that criticism needs to be tempered by pointing out the verbose methods are used very infrequently. 99% of the methods i use are small and concise, like: truncate(), h(), link_to(), redirect() etc.

      The biggest annoyance was automated code generation

      see this i'm finding hard to understand. when i want to start a new model and controller, i type a line in a prompt, and it makes the few files i need to begin. 'begin' being the operative word. there endeth the code generation.

      my method of automated code generation is copy and paste.

      If I made changes to the database, I either had to a) wipe the directory and start over reimplementing my changes. Or b) go through all the MVC code and find the references to the database

      i've NEVER experienced this. never never never. and i have no idea what you're talking about. one of the real clinchers of rails for me is its use of ActionRecord to interface with the database. i modify my database constantly without breaking any code. the only case i can think of when what you describe could happen is if i were to rename a column in the database, then my row.name object wouldn't match. but i would consider a broken website due to this the fault of a stupid developer.

      to be able to connect to my database, retrieve a record and update it, in 1 line in some cases, becomes rather neccessary for a developer once they've tried it.

      Mydb.update(id, :name => 'John')
      will do all of these. i take a wee dance on the grave of large-scale php development everytime i use that.

      But I'd like to see the video of someone doing a large project in rails

      and here is where i'm convinced that you are what i think you are (an intelligent programmer who's taken big issue over minor irritations). large scale use of rails is very easy to find [rubyonrails.org] if you visit the rails site . It's also very easy to find a larger list [rubyonrails.com], and a list of interesting apps [rubyonrails.com] to boot. granted, not moving pictures, but .. oh go away.

      [ Parent ]
    • Re:Why rails annoys me... by lambdahead (Score:2) Wednesday December 14 2005, @09:46AM
    • Re:Why rails annoys me... by TrekCycling (Score:3) Wednesday December 14 2005, @10:51AM
    • Re:Why rails annoys me... by jaydonnell (Score:2) Wednesday December 14 2005, @12:35PM
    • Re:Why rails annoys me... by nikster (Score:2) Friday December 16 2005, @08:58PM
    • Re:Why rails annoys me... by xteddy (Score:2) Wednesday December 14 2005, @07:16AM
    • 3 replies beneath your current threshold.
  • For some uses.... (Score:1)

    by kadathseeker (937789) on Tuesday December 13 2005, @10:32PM (#14253150)
    (http://themountainsofmadness.150m.com/)
    http://wiki.rubyonrails.org/rails/pages/RealWorldU sage [rubyonrails.org] I regularly partake in some Penny Arcade at penny-arcade.com . If you don't know about it, check it out.
  • Web 2.0, Baby! (Score:5, Funny)

    The Ruby on Rails website has also been given a new look.

    I'm guessing more pastels. And rounded corners.

  • My Fucking God (Score:1, Informative)

    by Anonymous Coward on Tuesday December 13 2005, @10:59PM (#14253267)
    No wonder some people refuse to use Rails... It's bloody fucking hard to install. I've been trying to install the damn thing for over 2 hours now. suPHP is a fucking walk in the park compared to this.
  • by An Onerous Coward (222037) on Tuesday December 13 2005, @11:28PM (#14253386)
    (http://www.cs.utah.edu/~andersbr/)
    sudo apt-get install rails
    cd /var/www
    mkdir rails
    rails rails
    cd rails
    ruby script/server
     
    => Rails application started on http://0.0.0.0:3000/
    => Ctrl-C to shutdown server; call with --help for options
    [2005-12-13 21:22:19] INFO WEBrick 1.3.1
    [2005-12-13 21:22:19] INFO ruby 1.8.3 (2005-06-23) [i486-linux]
    [2005-12-13 21:22:19] INFO WEBrick::HTTPServer#start: pid=27106 port=3000
     
    [... ctrl-c ....]
     
    [2005-12-13 21:22:35] INFO going to shutdown ...
    [2005-12-13 21:22:35] INFO WEBrick::HTTPServer#start done.
    First question: Do I get a cookie?

    Next question: Now what do I do?
  • Stupid name (Score:2)

    by merc (115854) <slashdot@upt.org> on Tuesday December 13 2005, @11:58PM (#14253569)
    (http://upt.org/lane)
    I always feel like donating something to the Red Cross whenever I hear about Ruby on Rails.. think of the children.
  • by frooyo (583600) on Wednesday December 14 2005, @12:08AM (#14253613)
    Does anyone know when Ruby 2.0 will be released.

    Being able to gain the performance from having a bytecode/virtual machine setup would be wonderful.
  • So... (Score:2)

    by iluvcapra (782887) on Wednesday December 14 2005, @12:31AM (#14253716)
    (http://www.soundepartment.com/)
    When is Ruby on Rails getting its own slashdot icon? Every other frickin' web development story is either "Rails is great" or "Watch the J2EE-Rails-Python flamewar"
  • AJAX quality is suspect (Score:4, Interesting)

    by brundlefly (189430) on Wednesday December 14 2005, @01:17AM (#14253944)
    It's great that Ruby is 1.0.

    But it's unfortunate that the preferred Ruby AJAX design pattern still includes prototype.js, because that library as written is fundamentally dangerous. It's written in a fashion which demonstrates that the author is very adept with JavaScript and functional programming in general; but it also does some unpardonably cute tricks in extending core objects, thereby changing the overall JavaScript environment and making the core AJAX library not play nicely with others. (And if ever there was an environment where you need to have good manners and not piss in the pool, it's the browser + JavaScript environment.)

    The sad thing is that there's nothing about the functionality of prototype.js which requires all that object and syntax wizardry to function correctly. It could easily be re-written to be perfectly safe. But at this point, the bell has been rung; other libs such as Rico now rely on those same insidious tricks, and 1.0 is out the door.

    Sigh. So close, so close.
  • by Chimera512 (910750) on Wednesday December 14 2005, @01:38AM (#14254037)
    (http://chimera512.blogspot.com/)
    i take it i should stick to a very solid LAMP base then look into ruby on the rails once i have some real code under my belt? make sure i don't learn some trendy language that dies in a couple years? and i assume this isn't a good language for someone with very little (essentially no) experience to jump into and try to learn?


    also, how is this implimented? does it preform operations serverside that output the html/xml/whatever code in a similar fashion as php? does it include database software in the ruby framework or do you still need something that is/is like Mysql to handle databases?
  • Documentation (Score:2)

    by TLLOTS (827806) on Wednesday December 14 2005, @02:47AM (#14254314)
    Does anyone know of a source for good downloadable Ruby documentation? I did look over the documentation section on the ruby website briefly, but what was offered there was far too web based for my tastes, and I'd personally prefer something closer to a downloadable .chm file like the PHP documentation. Can someone please provide a link to the closest equivalent?
  • by jherber (179099) on Wednesday December 14 2005, @06:17AM (#14254920)
    I know the other frameworks are in Python, but I don't have a problem with tabs. Can anyone make a comparison about why Ruby on Rails is better or worse than these other two rapid web prototyping frameworks? I haven't coded in Python in 4+ years, has Ruby become significantly better or different than Python for web, text, and database processing?

    http://turbogears.org/download/ [turbogears.org]
    http://www.djangoproject.com/ [djangoproject.com]

    Thanks to anyone who has used all 3 frameworks or has any insight.

    Jim
    • by arevos (659374) on Wednesday December 14 2005, @07:26AM (#14255082)
      (http://www.monkeyengines.co.uk/)
      I've briefly looked at all three frameworks, and here are my impressions:

      Turbogears is made up of separately developed components; CherryPy for the controller and HTTP server, SQLObject for database modelling and Kid for templating. Turbogears is pretty similar to RoR, but has less automation, and has a more Pythonic and component-based approach to development. Sometimes it's a little obvious that the components were created separately

      Django is more like Rails, but is somewhat more specialised. If you want to create a site with an administration section, then Django does a lot of the work for you. Beyond that, Django stacks up pretty equally against RoR.

      Both these frameworks are Python based, which again results in some differences. They may be easier to learn, but may lack a little of the flexibility that Ruby boasts. Ruby doesn't have many features that Python hasn't, but it does have some.
      [ Parent ]
    • Re:Can anyone offer a contrast to Gears and Django by pkphilip (Score:3) Wednesday December 14 2005, @09:09AM
    • Re:Can anyone offer a contrast to Gears and Django by znmeb (Score:1) Wednesday December 14 2005, @11:20PM
  • Symfony (Score:1)

    by Abstract (12510) on Wednesday December 14 2005, @06:29AM (#14254947)
    (Last Journal: Saturday July 01 2006, @07:56AM)
    Anyone who is looking for a PHP port of Ruby on Rails has to take a look at Symfony [symfony-project.com].

    Based on the best practices of web development, thoroughly tried on several active websites, symfony aims to speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure.

    If you have been looking for a Rails/Django-like framework for PHP projects with features such as:

    * simple templating and helpers
    * cache management
    * multiple environments support
    * deployment management
    * scaffolding
    * smart URLs
    * multilingual and I18N support
    * object model and MVC separation
    * Ajax support
  • by clear_thought_05 (915350) on Wednesday December 14 2005, @08:36AM (#14255393)
    Just thought I'd add that I've found this guide very useful for Rails on FC4: http://digitalmediaminute.com/howto/fc4rails/ [digitalmediaminute.com]. Very thorough.
  • Rails cost/benefit results (Score:4, Informative)

    by rheotaxis (528103) on Wednesday December 14 2005, @09:30AM (#14255723)
    (http://blueskytech.blogspot.com/)
    So far, I love Rails, because I have done the following, with these initial costs:
    1. new domain name, $5/year
    2. Rails host acct, $12/year
    3. my time spent, about 6 to 10 hours a week for last 2 months

    Installed Rails Apps (open source): (sorry, no links to my domain, must avoid /. effect):
    • blog at my own domain using typo [leetsoft.com]
    • agile, extreme programming management tool using eXPlainPMT [explainpmt.com]
    • a to do list using Tracks [rousette.org.uk]
    • content management system using MuraveyWeb [muravey.net] CMS


    How is this different? I only worry about one Terms of Service, imposed by the web host. I control all aspects of the deployment of the Rails apps. So the blog is not just my blog, its a blog at my domain (or sub-domain if I perfer), and I control the databases that store its content. In fact, I control every aspect of the blog. For instance, I could make the blog appear and disappear based upon phases of the moon. Can you do that with any blog host, just by changing two links at a shell prompt?

    The same goes for every other Rails app I have deployed on my server account. The Rails principles of "don't repeat yourself" (DRY) and convention over configuration, meant that once I installed one Rails app, the experience was immediately applicable to installing the rest. They all have the same directory structure, and the same configuration file for database connection, which is the only configuration file you must edit.

    The rest just works, usually. You have to check your versions, and make sure your app and Rails work at the current version. I admit I have experience building server side web projects using VB6 DLL and ASP.NET, along with equally strong UNIX background, so I was able to tweak a few things and proceed when they didn't work the first time. Don't dispair, I was able to make it work after a few hours of checking on-line forums, and trying some suggestions.
  • Component Model (Score:1)

    by pkulak (815640) on Wednesday December 14 2005, @11:11AM (#14256568)
    Does Rails have any kind of a component model yet? Last I checked they abstracted me completly away from the database with ActiveRecord, but I was still left to manually parse fields out of the request. That just doesn't do it for me when there are tools like .NET and Tapestry/Wicket out there.
  • I've read all the hype and I'm convinced that I want to learn Rails.

    I'm documenting my experiences here:
    http://www.railsroad.com/typo/ [railsroad.com] is going to detail my experiences learning Rails and Ruby.

    There has been lots of hype about the incredible productivity boosts that Rails gives developers. Railsroad.com is going to detail my experiences learning Rails and Ruby.

    Unlike some of the Rails blogs written by self-professed Ruby newbies. I'm a real newbie! I'm not coming from a background of 5 years developing web applications in Java.

    I programmed games in Basic in the early 1980's, BUT I stopped programming when I started dating, so I'm a real newbie.

    I've learned a lot about what users want having created several popular sites. My hope is that Rails is the tool to help me draw my ideas into the real world.

    I promise I'm going to share exactly what I think about Rails and Ruby. No Hype, no B.S.!

    Plus, I think It'll be fun for experienced programmers to laught at my ignorance.

    Now, I've got to get back to work.
  • by CleverFox (85783) on Wednesday December 14 2005, @01:17PM (#14257637)
    I have been writing some internal web applications for my corporation using Ruby on Rails. I will never go back to PHP or ASP.NET. Ruby on Rails lets me write things in 10 hours it would take me 50 hours to write in PHP. The framework is set up to make it easy for you to re-use code and stylesheets so you don't end up writing the same stuff over and over. I've written much more PHP code than Ruby code but I am already much more productive in RoR.

    I love how small and compact RoR apps are. You end up with less lines of code and therefore project maintenance is so much easier. The "migrate" class is amazing. Gives you version control for your database schema. It really speeds up the development cycle.

    Not only that but Ruby on Rails is fun to program in! Everything is so squeaky clean and organized. It gives you a good feeling and is much more readable than the old spaghetti code I used to write in PHP. Ruby on Rails has templating built in so you don't have to go install and learn some third party template program. I love it. I am so much more productive I am blowing away the other web developers who write in non-RoR frameworks. They have no chance at competing with me.
  • I have not tried ruby yet, but are there any CMS similar to Mambo/Joomla for ruby?

    Thanks.
  • editor (Score:1)

    by amazon10x (737466) <amazon10x@ho!tm! ... nus exclamations> on Thursday December 15 2005, @04:53PM (#14267738)
    I like that editor he is using in the presentation about schemas. Can someone tell me the name of it and if there is something almost identical to that for use on windows?
    • Re:editor by kalleh (Score:1) Saturday December 17 2005, @11:52AM
  • Re:"mostly right"??? (Score:5, Insightful)

    by Tyler Eaves (344284) on Tuesday December 13 2005, @09:30PM (#14252861)
    (http://www.cg2.org/)
    I'd prefer to look at it as honesty.
    [ Parent ]
  • Re:"mostly right"??? (Score:2, Insightful)

    by sterwill (972) on Tuesday December 13 2005, @09:37PM (#14252904)
    (http://io.nu/)
    How would you describe the software you write?
    [ Parent ]
  • "mostly right, most of the time, for most of the people."??? Is this the standard by which the Ruby community judges software goodness? I'm speechless.

    Yeah, it's not great, but at least it's honest. Go on any developer site - MSDN, java.sun.com, whatever, and you'll see a nice long list of submitted bugs. Fact is, no software is perfect, so don't go crazy when they admit there might be uncaught bugs.

    [ Parent ]
  • Re:"mostly right"??? (Score:4, Informative)

    by quigonn (80360) on Tuesday December 13 2005, @09:38PM (#14252911)
    (http://synflood.at/blog/)
    At least it's more honest than the usual "it brings world peace and helps improve your stamina" attitude I see with other frameworks, especially within the Java community (that last clause will probably start off a flamewar :->).
    [ Parent ]
  • Re:"mostly right"??? (Score:4, Insightful)

    by CyricZ (887944) on Tuesday December 13 2005, @09:46PM (#14252943)
    That's a far higher standard than you'll find used by most commercial developers.

    Remember, Ruby is at the forefront of the agile development community. Many developments in unit testing, for instance, directly involve Ruby. Ruby developers are often the most experienced at effectively employing such development techniques.

    And you know what? It shows. Ruby software is often of extremely high quality. It's not perfect, but there is much effort taken to ensure correctly-functioning code.

    [ Parent ]
  • by porkThreeWays (895269) on Tuesday December 13 2005, @09:58PM (#14253008)
    The point of rails is to have sensible defaults that work most of the time. Web apps share A LOT of commonality. The idea is to take out repitiveness as much as possible. This is done with sensible defaults. If these aren't good for you, they can be changed. But it's meant to have reasonable defaults for most, unlike certain web languages that make you start from scratch every time.
    [ Parent ]
  • "mostly right, most of the time, for most of the people."???
    Is this the standard by which the Ruby community judges software goodness? I'm speechless.


    It certainly is better to know the problems/that there are problems in a piece of software, rather than having problems that are kept secret - the way MS, etc do it. Software is never perfect, whether you admit the problems it has or not.
    [ Parent ]
  • by CyricZ (887944) on Tuesday December 13 2005, @10:05PM (#14253037)
    Not directly.

    However, many of the problems associated with PHP are just due to flaws in the design of PHP. It's more a case of PHP being worse than it should be, rather than Ruby on Rails being extremely secure.

    That said, most Ruby on Rails-related code is written by far more experienced developers. As would be expected, the quality of the code is higher, and the likelyhood of security issues is vastly reduced. The trend in the Ruby community to heavily use unit testing also helps ensure that quality is a paramount consideration.

    [ Parent ]
  • Re:Who cares? (Score:1)

    by RegularFry (137639) on Wednesday December 14 2005, @06:22AM (#14254929)
    Got any specifics there, pardner?

    [ Parent ]
    • 1 reply beneath your current threshold.
  • Re:isnt ruby too perlish? (Score:3, Informative)

    by krmt (91422) <therefrmhere&yahoo,com> on Wednesday December 14 2005, @09:38AM (#14255788)
    (http://www.debian.org/)
    It's funny, I thought this too when I first started playing with ruby. But once I actually started using the language I found that I wrote in it completely differently than perl. Closer to what little python I had written actually.

    Ruby looks like perl because it uses the $ and @ prefixes, but it uses them for completely different purpose: in perl they denote type where in ruby they denote scope. This turns out to be a nice feature, since you should be using some sort of notation in your variable names to denote scope anyway. It also permits the concept of duck typing throughout the ruby community, which is a key feature in making the language natural and easy to use.

    Furthermore, people tend to write ruby with a lot more OO than in perl. Again, much closer to python.

    Finally, good ruby code uses blocks everywhere. You can do code block-like things in perl or python, but in ruby it's very simple, fairly clean, and a very natural part of the language. I think this is what really distinguishes ruby from python fundamentally as a language. RoR, like any app written in a ruby style, makes extensive use of this feature and it allows some of the things that make people so excited about rails.

    Oh, and the culture of the ruby community is such that people tend to write code that's fairly consistent between authors. Python is similar, although this seems to be more a function of the language itself than the community's culture. Perl's culture, on the other hand, encourages creativity and variety between authors, making it hard to read other people's code unless you know most of the camel book. I've never had any trouble reading someone else's ruby code, and I know about as much ruby as I know perl.
    [ Parent ]
  • 12 replies beneath your current threshold.