a couple of questions about Ruby on Rails

Discussion in 'OT Technology' started by babygodzilla, Jul 7, 2007.

  1. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    what is Rake? i dont understand what the use of it is. say I have already made a RoR app, it's all done and ready to go. i can just so script/server, and boom its running. what is the use of Rake tho? i understand that it's to "deploy" the app... but... what does that mean...?




    another question, say my app gives you random polls, 1 at a time. if there is no user-based system, how do u prevent people from voting twice in one poll in Ruby, at least while the browser is still open. meaning if you close the browser, clear the cache, and open a new browser (or i guess just clear the cache in general), you could technically vote for the same poll again.
     
  2. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    ruby is about quick smoke/mirror demos. I wouldn't use it for production stuff. (at least going production makes ruby less attractive and more on level with any other language/framework)
     
  3. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    ummm ok.. thanks for that. your opinion has been duly noted.

    now is there anyone with a REAL answer to my questions?
     
  4. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    rake is an automation tool that does everything from creating models, migrations, or copying files, etc. As far as putting your app into production, don't use rake. It's really just a deveopment tool. You'll want to look into using Apache w/ FastCGI or other recommended solutions. I'd do some research because it will really depend on your environment and requirements.

    The poll question: you could use a combination of ip address, cookie, browser footprint to uniquely identify a client.
     
  5. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    this is a rediculous, old, and disproven statement. There are many LARGE production ruby built web apps available running, doing just fine.

    EDIT: I will add that if you intend to re-build ebay, myspace, or the entire google network, then you may want to think about another solution. However, for medium sized applications RoR is more than suitable.
     
    Last edited: Jul 8, 2007
  6. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    If I'm going to build a high-class app like ebay, myspace, or the google network I'm using JSP. /thread.
     
  7. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    how do u check if a cookie exists on the client's side?
     
  8. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
  9. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    YTF are they using "nil" instead of "null"? Does that really accomplish a goddamned thing besides making people have to remember another keyword?
     
  10. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    Ruby has been around since the early 90's :dunno:

    Probably wasn't AS standard back then
     
  11. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    Ruby isn't the same as The Ruby Project, which was the precursor to Visual Basic. I don't know if that's what you were thinking of, but in case it was, you were wrong. Never do it again. :squint:
     
  12. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    :confused:

    Ruby the language
    http://en.wikipedia.org/wiki/Ruby_language
     
  13. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    This person has never used Ruby or Rails, and has no valid opinion about Ruby/Rails.
     
  14. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    Peyomp to the rescue!
     
  15. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
  16. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
    Ruby on Rails is cool. But man does the hype drive me crazy!
     
  17. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    I love the hype. Hype about an n-tier framework in a dynamic language! A strong community is forming. As you know I've mostly used an n-tier Perl framework, but look forward to using Ruby/Rails if I get a chance. I code Java all day, and its great for some things... but can't imagine using JSPs to do a web application, as it would be shooting myself in the foot.

    Actually, you should find the Ruby/Rails user group in your area on meetup.com or yahoo upcoming and go there for help!
     
  18. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    (superman pose) Dun dadadaaaaaa, dadadadadada dadadadadada dadadadadada dadaaaaa!
     
  19. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    that is a great idea! never woulda thought of that. thanks!

    actually the purpose of this post was to figure out how to move, or "deploy," a RoR application from my machine to the server. for example, i dont run my app on Apache on my machine. i figure on the server, say Dreamhost or such, i would probably be using Apache. another thing, the path to the Ruby interpreter might be different. for example, on my machine i have it as such:

    Code:
    #!/usr/local/bin/ruby
    
    on the server, it could be anything else. how do i deploy my app from my machine (or any machine for that matter) to a server without worrying about any of these variables?
     

Share This Page