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

Ambigous in rails

Expand Messages
  • bobby prabowo
    Wah rails ternyata ga stabil2 amat yah klo bikin scaffold dengan nama news script/generate scaffold news title:string content:text pasti ga bisa create data
    Message 1 of 3 , Jun 4, 2009
      Wah rails ternyata ga stabil2 amat yah

      klo bikin scaffold dengan nama news

      script/generate scaffold news title:string content:text

      pasti ga bisa create data
      krn pada url
      http://localhost:3000/news/new

      dia nganggep news dengan new, adalah ambigu

      errornya :
      news_url failed to generate from {:action=>"show", :controller=>"news"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["news", :id] - are they all satisfied?

      solusi sementara, ganti nama controller / actionnya deh. aseem

      apa ada solusi lain?


      Akses email lebih cepat. Yahoo! menyarankan Anda meng-upgrade browser ke Internet Explorer 8 baru yang dioptimalkan untuk Yahoo! Dapatkan di sini!
      http://downloads.yahoo.com/id/internetexplorer

      [Non-text portions of this message have been removed]
    • Achmad Gozali
      solusi lainnya routingnya yang dikasih alias mas misalnya : map.resources :berita, :controller = :news salam, --gozali ... [Non-text portions of this message
      Message 2 of 3 , Jun 5, 2009
        solusi lainnya routingnya yang dikasih alias mas

        misalnya :
        map.resources :berita, :controller => :news

        salam,

        --gozali

        On Jun 5, 2009, at 10:59 AM, bobby prabowo wrote:

        >
        >
        > Wah rails ternyata ga stabil2 amat yah
        >
        > klo bikin scaffold dengan nama news
        >
        > script/generate scaffold news title:string content:text
        >
        > pasti ga bisa create data
        > krn pada url
        > http://localhost:3000/news/new
        >
        > dia nganggep news dengan new, adalah ambigu
        >
        > errornya :
        > news_url failed to generate from
        > {:action=>"show", :controller=>"news"} - you may have ambiguous
        > routes, or you may need to supply additional parameters for this
        > route. content_url has the following required parameters:
        > ["news", :id] - are they all satisfied?
        >
        > solusi sementara, ganti nama controller / actionnya deh. aseem
        >
        > apa ada solusi lain?
        >
        > Akses email lebih cepat. Yahoo! menyarankan Anda meng-upgrade
        > browser ke Internet Explorer 8 baru yang dioptimalkan untuk Yahoo!
        > Dapatkan di sini!
        > http://downloads.yahoo.com/id/internetexplorer
        >
        > [Non-text portions of this message have been removed]
        >
        >
        >



        [Non-text portions of this message have been removed]
      • Ahmad Tanwir a.k.a Ata
        Matiin aturan plural singularnya...
        Message 3 of 3 , Jun 5, 2009
          Matiin aturan plural singularnya...

          Achmad Gozali wrote:
          > solusi lainnya routingnya yang dikasih alias mas
          >
          > misalnya :
          > map.resources :berita, :controller => :news
          >
          > salam,
          >
          > --gozali
          >
          > On Jun 5, 2009, at 10:59 AM, bobby prabowo wrote:
          >
          >>
          >> Wah rails ternyata ga stabil2 amat yah
          >>
          >> klo bikin scaffold dengan nama news
          >>
          >> script/generate scaffold news title:string content:text
          >>
          >> pasti ga bisa create data
          >> krn pada url
          >> http://localhost:3000/news/new
          >>
          >> dia nganggep news dengan new, adalah ambigu
          >>
          >> errornya :
          >> news_url failed to generate from
          >> {:action=>"show", :controller=>"news"} - you may have ambiguous
          >> routes, or you may need to supply additional parameters for this
          >> route. content_url has the following required parameters:
          >> ["news", :id] - are they all satisfied?
          >>
          >> solusi sementara, ganti nama controller / actionnya deh. aseem
          >>
          >> apa ada solusi lain?
          >>
          >> Akses email lebih cepat. Yahoo! menyarankan Anda meng-upgrade
          >> browser ke Internet Explorer 8 baru yang dioptimalkan untuk Yahoo!
          >> Dapatkan di sini!
          >> http://downloads.yahoo.com/id/internetexplorer
          >>
          >> [Non-text portions of this message have been removed]
          >>
          >>
          >>
          >
          >
          >
          > [Non-text portions of this message have been removed]
          >
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.