Top "Urlhelper" questions

Rails - URL helpers not working in mailers

I tried: class MyMailer def routes Rails.application.routes.url_helpers end def my_mail @my_route = routes.my_helper ... …

ruby-on-rails actionmailer urlhelper
UrlHelper.Action includes undesired additional parameters

I have a method in the controller ApplicationsController, in which I need to get the base URL for an action …

c# asp.net-mvc-4 urlhelper
ASP.Net Core 2.0: Creating UrlHelper without request

I'm working on creating a UrlHelper for a background worker to create callback urls, which means it's not part of …

c# asp.net-core asp.net-core-2.0 urlhelper
Mocking Controller.Url.Action(string, string, object, string) in ASP.NET MVC

I use NUnit and Moq libraries for unit testing. I need to mock overloaded Url.Action(string, string, object, string), …

asp.net-mvc unit-testing moq urlhelper
MVC 6 IUrlHelper Dependency Injection

I want to use IUrlHelper through dependency injection to be able to use its functionality to generate uris for different …

c# dependency-injection inversion-of-control asp.net-core-mvc urlhelper