Here are the commands: 407 rails new resource_test_2 408 cd resource_test_2/ 409 rails g resource asset 410 rake routes The output: imac:resource_test_2 joel$ rake routes imac:resource_test_2 joel$ rails --version Rails 3.1.0.rc4 On 3.0.9 the resource routes come up, on 3.1.0.rc4 the routes do not. If you use a name other than asset, rc4 brings up the routes. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Ken Collins
2011-Jun-19 18:29 UTC
Re: [Rails 3.1.0.rc4] Issue with a resource named "asset"
Without looking deeply into this, I would assume that this is related to the asset pipeline and sprockets using that route. I''m not sure if either disabling it in application.rb with "config.assets.enabled = false" and/or a warning is the proper solution, if any. - Ken On Jun 19, 2011, at 10:21 AM, Joel Clark wrote:> Here are the commands: > > > 407 rails new resource_test_2 > 408 cd resource_test_2/ > 409 rails g resource asset > 410 rake routes > > The output: > > imac:resource_test_2 joel$ rake routes > imac:resource_test_2 joel$ rails --version > Rails 3.1.0.rc4 > > > On 3.0.9 the resource routes come up, on 3.1.0.rc4 the routes do not. > If you use a name other than asset, rc4 brings up the routes.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Seems that introducing a way to rename the asset pipeline route would be a needed option, that would fix issues such as this. -- Joel Moss Develop with Style at http://DevelopWithStyle.com Really useful software project management: http://Codaset.com ==================================Call me +44 7791 503309 http://twitter.com/joelmoss AIM: joelkmoss MSIM: joel@joelmoss.info Skype: joelmoss.info On Sunday, 19 June 2011 at 19:29, Ken Collins wrote:> > Without looking deeply into this, I would assume that this is related to the asset pipeline and sprockets using that route. I''m not sure if either disabling it in application.rb with "config.assets.enabled = false" and/or a warning is the proper solution, if any. > > - Ken > > On Jun 19, 2011, at 10:21 AM, Joel Clark wrote: > > > Here are the commands: > > > > > > 407 rails new resource_test_2 > > 408 cd resource_test_2/ > > 409 rails g resource asset > > 410 rake routes > > > > The output: > > > > imac:resource_test_2 joel$ rake routes > > imac:resource_test_2 joel$ rails --version > > Rails 3.1.0.rc4 > > > > > > On 3.0.9 the resource routes come up, on 3.1.0.rc4 the routes do not. > > If you use a name other than asset, rc4 brings up the routes. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com (mailto:rubyonrails-core@googlegroups.com). > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com (mailto:rubyonrails-core+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Guillermo Iguaran
2011-Jun-19 19:51 UTC
Re: [Rails 3.1.0.rc4] Issue with a resource named "asset"
You can do it with config.assets.prefix = "/something" -- Guillermo Iguaran Sent with Sparrow (http://www.sparrowmailapp.com) On Sunday, June 19, 2011 at 2:45 PM, Joel Moss wrote:> Seems that introducing a way to rename the asset pipeline route would be a needed option, that would fix issues such as this. > > -- > Joel Moss > > Develop with Style at http://DevelopWithStyle.com > Really useful software project management: http://Codaset.com > ==================================> Call me +44 7791 503309 > http://twitter.com/joelmoss > AIM: joelkmoss > MSIM: joel@joelmoss.info (mailto:joel@joelmoss.info) > Skype: joelmoss.info (http://joelmoss.info) > > > On Sunday, 19 June 2011 at 19:29, Ken Collins wrote: > > > > > Without looking deeply into this, I would assume that this is related to the asset pipeline and sprockets using that route. I''m not sure if either disabling it in application.rb with "config.assets.enabled = false" and/or a warning is the proper solution, if any. > > > > - Ken > > > > On Jun 19, 2011, at 10:21 AM, Joel Clark wrote: > > > > > Here are the commands: > > > > > > > > > 407 rails new resource_test_2 > > > 408 cd resource_test_2/ > > > 409 rails g resource asset > > > 410 rake routes > > > > > > The output: > > > > > > imac:resource_test_2 joel$ rake routes > > > imac:resource_test_2 joel$ rails --version > > > Rails 3.1.0.rc4 > > > > > > > > > On 3.0.9 the resource routes come up, on 3.1.0.rc4 the routes do not. > > > If you use a name other than asset, rc4 brings up the routes. > > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > > To post to this group, send email to rubyonrails-core@googlegroups.com (mailto:rubyonrails-core@googlegroups.com). > > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com (mailto:rubyonrails-core+unsubscribe@googlegroups.com). > > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com (mailto:rubyonrails-core@googlegroups.com). > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com (mailto:rubyonrails-core+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Pipped to the post! Nice work Guilermo! On 20/06/2011, at 5:51, Guillermo Iguaran <guilleiguaran@gmail.com> wrote:> You can do it with config.assets.prefix = "/something" > > -- > Guillermo Iguaran > Sent with Sparrow > On Sunday, June 19, 2011 at 2:45 PM, Joel Moss wrote: > >> Seems that introducing a way to rename the asset pipeline route would be a needed option, that would fix issues such as this. >> >> -- >> Joel Moss >> >> Develop with Style at http://DevelopWithStyle.com >> Really useful software project management: http://Codaset.com >> ==================================>> Call me +44 7791 503309 >> http://twitter.com/joelmoss >> AIM: joelkmoss >> MSIM: joel@joelmoss.info >> Skype: joelmoss.info >> >> On Sunday, 19 June 2011 at 19:29, Ken Collins wrote: >> >>> >>> Without looking deeply into this, I would assume that this is related to the asset pipeline and sprockets using that route. I''m not sure if either disabling it in application.rb with "config.assets.enabled = false" and/or a warning is the proper solution, if any. >>> >>> - Ken >>> >>> On Jun 19, 2011, at 10:21 AM, Joel Clark wrote: >>> >>>> Here are the commands: >>>> >>>> >>>> 407 rails new resource_test_2 >>>> 408 cd resource_test_2/ >>>> 409 rails g resource asset >>>> 410 rake routes >>>> >>>> The output: >>>> >>>> imac:resource_test_2 joel$ rake routes >>>> imac:resource_test_2 joel$ rails --version >>>> Rails 3.1.0.rc4 >>>> >>>> >>>> On 3.0.9 the resource routes come up, on 3.1.0.rc4 the routes do not. >>>> If you use a name other than asset, rc4 brings up the routes. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. >>> To post to this group, send email to rubyonrails-core@googlegroups.com. >>> To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. >>> For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.