Questions about mapping URLs to Controllers and Actions.

learn more… | top users | synonyms

0
votes
1answer
14 views

rails routing: using bound parameter as action name

I got a bunch of .html files from a designer. I just want to use them directly, but they have non-resourceful links. I realized that if I map .html routes to home# actions, I can start working with ...
0
votes
0answers
4 views

Laravel 4 mandatory parameters error

Hello im working with laravel 4 in a proyect and it´s not the first time but i have a problem that ive never had before. Some mandatory parameters are missing ("key") to generate a URL for route ...
0
votes
0answers
4 views

.NET MVC: Having a physical folder with the same route as a controller

I have a controller/view for URL: http://mydomain/SomeFolder/ I would also like to create the physical folder to put files in it http://mydomain/SomeFolder/ When someone goes to URL ...
0
votes
0answers
13 views

Trouble with routes

I'm having a little 'best practice' trouble with routing and devise. Here is my routes file. I realize it is becoming extremely !DRY, but this routing makes sense. My question is instead of what I ...
0
votes
1answer
22 views

How to prevent POST methods from being accessed via GET in Codeigniter?

I am using Codeigniter . I have the below method - create_client when the user submits a form with all details filled in . <?php if ( ! defined('BASEPATH')) exit('No direct script access ...
0
votes
1answer
11 views

Razor create link to route

I've just installed Elmah in my MVC application. It magically added a route in Web.config: <add key="elmah.mvc.route" value="elmah" /> Which I can access through: localhost/elmah How can I ...
0
votes
1answer
23 views

Routes logic error

First, I'm a newbe, so take it easy on me. XD I have an app with, Aulas Courses Students Grades Menagements Aulas and students has_many through grades. Aulas and courses has many through ...
0
votes
2answers
26 views

NoMethodError when going to page to create new record

I keep struggling with this sort of thing in Rails. I'm trying to create a statistics record for a given city. I guess I don't need to paste my models? Below is the error, URL, view and controller ...
0
votes
0answers
7 views

Use fosuser registration form on multiple urls

I want to use the fosuser registration form on different urls for different languages. Like for example /en/register and /de/registrierung. # app/config/routing.yml fos_user_register_de: ...
0
votes
1answer
16 views

Unable to register routes in SignalR 2.0.0

I decided to move to the latest version of signalr but i facing a few issues. First of all the way to register routes has entirely changes; so i tried to do it the way that this link ...
0
votes
1answer
13 views

cakephp multilingual routes

I'm working on a multilingual website and I want to create multilingual routes. example: monsite.com/en/the-house, monsite.com/fr/la-maison and monsite.com/it/la-casa link to the "house" action of ...
0
votes
1answer
30 views

What does (.:format) mean in rake routes' output?

What does (.:format) mean in rake routes' output? users GET /users(.:format) users#index
0
votes
1answer
36 views

laravel 4 simple route not working

I have a working laravel installation to which I wanted to add a route but it wouldn't work. Route::get('asdf', function() {return "asdf";}); All the other routes work but new ones don't, not even ...
0
votes
2answers
27 views

Rails Variable Polymorphic Route

I want to pass in a variable to a route in a partial. The model in question look like this: model Foo < ActiveRecord::Base has_many :dogs has_many :cats The path I want is either: ...
0
votes
2answers
23 views

Redirect to current page rails

I have a sign in form in my application nav bar and I was wondering if there is an easy way to have to sign_in redirect to whatever page you are currently on when you sign_in. Thanks!

1 2 3 4 5 245
15 30 50 per page