Questions tagged [urlhelper]

113 questions
2
votes
3 answers

Deploying ASP.NET MVC App to Multiple Virtual Directories (Issues with URL references & JS files)

I'm not sure if I have my question named correctly but here's the issue: I have an MVC.NET app that is deployed at multiple virtual directories. The reason for this is because we have different versions under various stages of QA. The problem with…
DaveDev
  • 41,155
  • 72
  • 223
  • 385
2
votes
1 answer

Rails paths from url_helpers are different from view paths?

In my Rails 4 application I have a model that needs to build links to other parts of the application. I am using Rails.application.routes.url_helpers. to generate the URL of this link. The problem I have is that this generated path…
James McMahon
  • 48,506
  • 64
  • 207
  • 283
2
votes
2 answers

Rspec undefined local variable or method root_path

I'm starting to use Rspec, but when I run bundle exec rspec I get an error /spec/requests/pages_spec.rb:20:in `block (2 levels) in ': undefined local variable or method `root_path' for # (NameError) I do…
Patrick
  • 1,410
  • 2
  • 19
  • 37
2
votes
2 answers

How to Make Zend_Controller_Router resets un-wanted parameter by default

I'm using Zend-Framework 1.9.5 to make a web-application, But it's Url_Helper was quite tricky to me in the matter of parameter reset!, I know it's a good feature (parameter preserving) but in most cases I don't need it!. So I'm thinking of…
Omar Al-Ithawi
  • 4,988
  • 5
  • 36
  • 47
2
votes
1 answer

In Rails, what's the URL helper for an unknown model?

I'm trying to get the path in Rails to a model that I don't necessarily know the class of in a rake task (so it's not in an .erb). I know that I can do this: Rails.application.routes.url_helpers._path(model) But what if I don't necessarily…
roasm
  • 1,373
  • 1
  • 8
  • 9
2
votes
1 answer

ASP.NET Mvc 4 Use bundle's benefits for Url.Content

Is there any way I can do this? Some of the benefits of bundling are: Minimization Gzip compression The request has a token parameter for handling files versiones (cache). In my site I use a lot of bundles, but in some pages I only have 1 script…
Diego
  • 16,436
  • 26
  • 84
  • 136
1
vote
1 answer

Making a post request and after submitting a form

I am having this problem while working on an eshop I am building, I want to simply do a post request to a controller (that is not returning a view) while also submiting a form.. I do not know what is wrong with this code