basgren / railways

A plugin for RubyMine and IntelliJ IDEA Ultimate that adds a panel with routes of Ruby on Rails application.
MIT License
46 stars 18 forks source link

Path within locale is not shown. #36

Closed muraaano closed 5 years ago

muraaano commented 5 years ago

Hi I likely use railways plugin. I noticed paths are not shown under locale. Please check this below condition ? Thank you.

config/routes.rb

Rails.application.routes.draw do
  scope '(:locale)', locale: /en|ja/ do
    resources :spots

result of bundle exec rake routes

spots GET        (/:locale)/spots(.:format)                                                spots#index {:locale=>/en|ja/}

result of railways

none

Environment

Railways v0.8.12 Rubymine 2018.3.1

Ruby 2.5.1 Rails 5.1.4

basgren commented 5 years ago

Hi, @Samemura ! Thank you for detailed description. Please check new version of the plugin (0.8.13) - it should work fine with optional segment in the beginning of route path.