Powered by eUKhost®

Announcement

Collapse
No announcement yet.

PHP on Rails

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP on Rails

    Ruby is a web programming language I've heard about lately.

    It has a thing that you can download called Ruby on Rails that examines a MySQL database and creates pages to input, edit, delete and view this data automically.

    I thought very cool.

    Anyone heard of this type of thing for PHP?
    Could write it myself, but it would take a while to make a good one.

  • #2
    I read something about Ruby in a webdesign mag last month - I'll be honest and say i've not read into it... might be worth a look see.

    Comment


    • #3
      Ditto

      Thats what I was thinking.
      Especially as its meant to be aimed at coders to make life more simple. yea!
      But it looks a little complicated, i'm sure that will pass in a bit.
      I am thinking that it might not be long and I will see it on job vacancies specifications.

      Too busy to learn it now, but its on the list

      Comment


      • #4
        let me know when you find a decent website hosting for Ruby so we can take a look see.

        Comment


        • #5
          What a girl that ruby....

          More info...

          http://www.ruby-lang.org/en/

          http://www.rubyonrails.org/

          Comment


          • #6
            Hi

            Would you be interested in a role as a Ruby on Rails Developer? Or do you know anyone who has experience in RoR please?

            Thank you

            Ferdouse Ara
            0116 25454 88
            [email protected]

            Comment


            • #7
              Originally posted by precision View Post
              Hi

              Would you be interested in a role as a Ruby on Rails Developer? Or do you know anyone who has experience in RoR please?

              Thank you

              Ferdouse Ara
              0116 25454 88
              [email protected]
              Not sure whether there are many Ruby experts on here but you can always try!!

              And by the way Jester if your still around - your signature link doesnt work .
              David Smith
              Managing Director
              DPS Computing Limited

              - Massive update! (September 2011) - It's now not neglected!!
              - New Site (10/2009)

              Comment


              • #8
                I read an article from sitepoint developer blog that state that PHP developers most likely interested to switch to Rails track, most likely the reason would be they find easier on experimenting to other open source and possibly they are getting extraordinary results.

                Comment


                • #9
                  Originally posted by paul View Post
                  I read an article from sitepoint developer blog that state that PHP developers most likely interested to switch to Rails track, most likely the reason would be they find easier on experimenting to other open source and possibly they are getting extraordinary results.
                  PHP has a good reputation and has proven itself though. So Ruby is supposed to be the dawn of a new programming era then?
                  David Smith
                  Managing Director
                  DPS Computing Limited

                  - Massive update! (September 2011) - It's now not neglected!!
                  - New Site (10/2009)

                  Comment


                  • #10
                    ruby

                    it looks like ruby is the way forward and seems more simpler so ive been told

                    Originally posted by DPS Computing View Post
                    PHP has a good reputation and has proven itself though. So Ruby is supposed to be the dawn of a new programming era then?

                    Comment


                    • #11
                      Originally posted by precision View Post
                      it looks like ruby is the way forward and seems more simpler so ive been told
                      Looks like I better get learning it then!
                      David Smith
                      Managing Director
                      DPS Computing Limited

                      - Massive update! (September 2011) - It's now not neglected!!
                      - New Site (10/2009)

                      Comment


                      • #12
                        Ruby on Rails is very nice - I never got into php because it looked so damned ugly, but I do have some experience of RoR.

                        FYI it is:
                        Object oriented
                        Uses model, view, controller architecture
                        Uses "convention of configuration".
                        has a nice object reference model.

                        So here's an example:
                        You want an object called a 'user'.
                        You use a generator, and it builds a 'user' model, controller and table, and a user folder in the views.

                        Then you can do things in the model like this:
                        validates_presence_of :name,
                        :login
                        validates_uniqueness_of :name,
                        :login
                        has_one :account
                        has_many rojects

                        RoR then creates a bunch of rules that ensure the above happens, and adds a relationship to an 'account' model.

                        In the controller you define actions, so you might have something like this:
                        def Home
                        @user_projects = Projects.find(:all, {:conditions => "user_id = ?" current_user.id})
                        end

                        Then in the view (which is where the HTML is constructed) you might have:
                        home.rhtml

                        <h1>Welcome <%=current_user.name%></h1>
                        <h2>These are your projects</h2>
                        <%@user_projects.each do |up|%>
                        <%=link_to "#{up.name}", :action => 'show', :id => up.id %><br/>
                        <%end>

                        This would then show a link to each of the projects that the user owns, taking them to the page defined in the project views as show.rhtml

                        Hope this explains it a bit, I don't really know how it compares to php as I said I never got into it.

                        Comment

                        ban-img
                        Working...
                        X