AJAX calls in Ruby : error 404

I'm new of ruby and web development, i've searched a lot for this problem but i still not figured out. I have a button : <button type="button" class="btn btn-primary" onclick="add()">Add</button> that call an AJAX function : <scr...
more »

2017-09-11 10:09 (1) Answers

Redirect batch of urls from routes.rb

For SEO purpose, I have to redirect bunch of urls (something like 200) for now, maybe more later, maybe less. I want to have easy access to it. So I thought about having a dedicated file containing all urls I need to redirect. Something like # confi...
more »

2017-08-17 12:08 (2) Answers

Dynamic route for catalog

I have this route routes.catalog.type = "Zend_Controller_Router_Route_Regex" routes.catalog.route = "(a|a-b|b|c|d|d-a|d-b)(.*)" routes.catalog.defaults.controller = "category" routes.catalog.defaults.action = "index" This match correctly with: ht...
more »

2017-08-04 13:08 (1) Answers

Angular ReuseStrategy

Recently I created Custom Reuse Strategy to reuse components for saving user inputs that is not saved properly(navigating away without clicking save button). shouldDetach(route: ActivatedRouteSnapshot): boolean { console.debug...
more »

2017-07-22 17:07 (0) Answers

static routing CentOS/Fedora 26

I've been having some trouble wrapping my head around how static routes work. Long story short I have the following: Fedora26 server with CentOS7 VM. Host IP: VM IP: The routing between the two works fine, as the vibr0 i...
more »

2017-07-19 20:07 (0) Answers

Route is redirecting to the wrong controller

I added these routes to RouteConfig.cs routes.MapRoute( name: "NewPositiveRelease", url: "dispatch/{poNumber}/{article}", defaults: new { controller = "PositiveReleaseItem", action = "Create"}); routes.MapRoute( name: "Dispatch", ...
more »

2017-07-03 06:07 (2) Answers

Route MVC ASP.Net just won't work

I can't get this work, even after dozens of other similar questions. Here is my controller (created with entity framework) namespace mypage.Controllers { [RoutePrefix("Booking")] public class BookingsController : BaseController { ...
more »

2017-07-01 21:07 (1) Answers

Flutter Redirect to a page on initState

I have an application where you need to log in to continue (for example with Google). I would like to redirect the user when the authentification is needed. However when I run a Navigator.of(context).pushNamed("myroute"). I got the following error:...
more »

2017-05-30 20:05 (1) Answers

ngRoute dynamic url as first part of path

I want to create dynamic URLs in my website. I'm using Angular in front-end with ngRoute. I want basicaly this URLs: mysite.com/home mysite.com/about mysite.com/(station's name)/ - this is a page to each station I've created but when I acces a st...
more »

2017-03-18 21:03 (1) Answers

Zend Framework Redirector Helper Routes

so I have this problem for two days that I can't figure out till now. Basically I created a simple login according to this Rob Allen's tutorial and some to adjust it with my environment. In that tutorial, when a user authenticated the login page redi...
more »

2017-02-21 03:02 (0) Answers

Angular 2: Prevent router from adding to history

We have a client that is iFraming in our app to their website. They don't want the router navigation within our app to affect the back button navigation for their own site. We've tried a couple methods including using post messages to try and have ...
more »

2017-02-03 17:02 (1) Answers

angular routing not working in Visual Studio 2015

It seems that by asking this question, I am just beating a dead horse, but I have been through all the posts that I could find and still could not find an answer. I (and even a colleague) have spent countless hours trying to solve what seems to be a ...
more »

2017-01-31 17:01 (3) Answers

URL hit the wrong controller LARAVEL

In route.php I defined a route to a controller with 2 tokens on it. Route::get('/{category}/{slug}', 'projectController@detail'); Everything is working fine till when there is a call to a URL that have the same structure but has nothing to do with...
more »

2016-12-16 04:12 (2) Answers

rails routes cannot redirect correctly

my data hierarchy is 'Case' has many 'Categories' has many 'Tasks' I have followed document that Resources should never be nested more than 1 level deep. Therefore, I use shallow as below : my routes.rb resources :cases do resources :categorie...
more »

2016-12-16 04:12 (2) Answers

How to access a Laravel API route?

I just created a fresh Laravel project in my localhost directory and created a Laravel route in the api.php file. Route::post('/home', 'HomeAPI@index'); However, when I try to send a post request to the link localhost/home from Postman, it gives t...
more »

2016-12-13 10:12 (2) Answers