Loading ...
Sorry, an error occurred while loading the content.
 

Re: [id-ruby] problem scafold rails 3.1.1

Expand Messages
  • dimas_priyanto@yahoo.com
    Itu syntax hash yang baru di ruby 1.9 boss Sent from my BlackBerry® powered by Sinyal Kuat INDOSAT ... From: Adhitia Hidayat
    Message 1 of 11 , Dec 6, 2011
      Itu syntax hash yang baru di ruby 1.9 boss

      Sent from my BlackBerry�
      powered by Sinyal Kuat INDOSAT

      -----Original Message-----
      From: Adhitia Hidayat <adhitia.hidayat@...>
      Sender: id-ruby@yahoogroups.com
      Date: Tue, 6 Dec 2011 15:20:57
      To: <id-ruby@yahoogroups.com>
      Reply-To: id-ruby@yahoogroups.com
      Subject: [id-ruby] problem scafold rails 3.1.1

      Hi Guys,

      Mau tanya

      dapet case aneh di Rails 3.1.1 Scafold

      pas generate scafold, ada yang aneh

      <td><%= link_to 'Destroy', grades,* confirm: 'Are you sure?', method:
      :delete* %></td>

      padahal kan harusnya :confirm => "Are you sure?" , bukan *confirm: 'Are
      you sure?'

      *Di beberapa PC* ga ada masalah (mac OS, Windows, IDE PAKE RUBYMINE), *Tapi
      di Ubuntu error message keluar

      Ada yang bila memberi pencerahan apa yang terjadi* *

      --
      Warm Regards
      ~ Adhitia Hidayat Saputra ~
      Ruby On Rails Developer


      [Non-text portions of this message have been removed]




      [Non-text portions of this message have been removed]
    • Arzumy MD
      That s the new hash syntax in ruby 1.9 Both {:a = 1} and {a: 1} will still work. Kalau masalah mungkin sebab ruby versi lain Cheers! Arzumy http://ar.zu.my
      Message 2 of 11 , Dec 6, 2011
        That's the new hash syntax in ruby 1.9
        Both {:a => 1} and {a: 1} will still work.

        Kalau masalah mungkin sebab ruby versi lain

        Cheers!
        Arzumy
        http://ar.zu.my


        2011/12/6 Adhitia Hidayat <adhitia.hidayat@...>

        > **
        >
        >
        > Hi Guys,
        >
        > Mau tanya
        >
        > dapet case aneh di Rails 3.1.1 Scafold
        >
        > pas generate scafold, ada yang aneh
        >
        > <td><%= link_to 'Destroy', grades,* confirm: 'Are you sure?', method:
        > :delete* %></td>
        >
        > padahal kan harusnya :confirm => "Are you sure?" , bukan *confirm: 'Are
        > you sure?'
        >
        > *Di beberapa PC* ga ada masalah (mac OS, Windows, IDE PAKE RUBYMINE), *Tapi
        > di Ubuntu error message keluar
        >
        > Ada yang bila memberi pencerahan apa yang terjadi* *
        >
        > --
        > Warm Regards
        > ~ Adhitia Hidayat Saputra ~
        > Ruby On Rails Developer
        >
        > [Non-text portions of this message have been removed]
        >
        >
        >


        [Non-text portions of this message have been removed]
      • ixandidu
        Hi Adhit, itu merupakan syntax hash untuk ruby 1.9. jadi mulai Ruby 1.9 kita bisa mendefinisikan hash kaya JS Object. saat mengenerate aplikasi rails 3.1.x ada
        Message 3 of 11 , Dec 6, 2011
          Hi Adhit,

          itu merupakan syntax hash untuk ruby 1.9.
          jadi mulai Ruby 1.9 kita bisa mendefinisikan hash kaya JS Object.

          saat mengenerate aplikasi rails 3.1.x ada pilihan untuk nge-force agar rails menggunakan syntax hash yg lama yaitu `--old-style-hash`

          Cheers.

          --- In id-ruby@yahoogroups.com, Adhitia Hidayat <adhitia.hidayat@...> wrote:
          >
          > Hi Guys,
          >
          > Mau tanya
          >
          > dapet case aneh di Rails 3.1.1 Scafold
          >
          > pas generate scafold, ada yang aneh
          >
          > <td><%= link_to 'Destroy', grades,* confirm: 'Are you sure?', method:
          > :delete* %></td>
          >
          > padahal kan harusnya :confirm => "Are you sure?" , bukan *confirm: 'Are
          > you sure?'
          >
          > *Di beberapa PC* ga ada masalah (mac OS, Windows, IDE PAKE RUBYMINE), *Tapi
          > di Ubuntu error message keluar
          >
          > Ada yang bila memberi pencerahan apa yang terjadi* *
          >
          > --
          > Warm Regards
          > ~ Adhitia Hidayat Saputra ~
          > Ruby On Rails Developer
          >
          >
          > [Non-text portions of this message have been removed]
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.