All Questions
Tagged with routes ruby-on-rails-3
1,533
questions
0
votes
1
answer
28
views
Trying to get reviews for a specfic game
Im attempting to see reviews for a specific game that ive created. Right now my reviews/index show for all games, not just the specific game im looking for. Im assuming its just something im missing ...
0
votes
2
answers
296
views
How to validate emails with error messages
[Update] I still dont know what to put in my else of my create conroller to put and error message.
I am trying to validate the format of users email.
This is the html the error is coming from
<...
0
votes
1
answer
26
views
Specify parameter name for additional resource actions
I have some nested resources specified in routes.rb
resources :installation, except: %i[index edit update show] do
resources :configuration, shallow: true, except: %i[index show]
end
which ...
0
votes
1
answer
58
views
Rails goes to show action when I want custom action of open or expired
I am basically trying to do a custom index
In my routes.rb I have:
resources :tokens do
resources :visits
collection do
get :open
get :expired
end
end
My routes show as :
...
-1
votes
1
answer
101
views
Rails Linking to an alternative view other than show
This is Rails 3.2
I have a list of visits and a button that I want to use to call a visit with an alternative view other than show . the button code in haml is:
link_to 'Checkout', render('...
0
votes
0
answers
112
views
Changing URL in the web page
How could i change the URL address while i'm moving from one tab to another tab within the same page? Where i want to change the code either in the routes.rb or in controller?
routes.rb:
Rails....
0
votes
1
answer
611
views
ActionController::RoutingError (uninitialized constant BaseController)
I create controller in app/controllers/v1/white_label_api
class Api::WhiteLabel::V1::BaseController < ApplicationController
end
and in other controllers I do
class Api::WhiteLabel::V1::...
0
votes
2
answers
5k
views
Routing Error uninitialized constant controller
I'm am trying to learn Ruby on rails and I keep getting this error.
My controller is
class Clasa9Controller < ApplicationController
def multimi
end
def progresii
end
def functii
end
...
4
votes
2
answers
1k
views
Rails reload dynamic routes on multiple instances/servers
How can we force Rails to reload_routes on multiple servers/instances?
We have a multi-tenant platform in Google App-Engine running on 5+ instances and we want all of our sites to define their own ...
0
votes
1
answer
65
views
Routing error in ruby rails
So, I am trying to send a GET request from Postman and trying to run the method called question. I am also passing parameters in my request.
I keep getting a routing error. Im not sure why.
The way ...
0
votes
2
answers
2k
views
Rails route not found even when its present
My following API route is not found when hit with CURL or POSTMAN client
Started POST "/api/users/register_handheld" for 181.74.100.34 at 2017-05-11 11:27:42 +0000
DEBUG: Chewy strategies stack: [2] &...
0
votes
1
answer
238
views
Ruby on Rails routing error because of my root?
I just started using Ruby on Rails and I was following this guide
and I was having trouble with 4.3 Setting the Application Home Page. It has you setting up the routes.rb like this -
Rails.application....
1
vote
1
answer
58
views
How to set route for a rendered action? Rails
i'm new to mvc, rails and web development and i'm facing a problem:
I have an action(show) and a view for this action.
The view for show submits a form_tag to another action, that renders the action ...
1
vote
1
answer
417
views
Rspec not finding routes that exists
I'm trying to write a controller test and Rspec isn't finding routes that I know exist and work fine on a development server.
In my routes I have a catch-all route that should redeirect to a ...
0
votes
1
answer
551
views
How to add single method to handle multiple routes
my rails application is a proxy server for some rest API services It means all the request for the rest server is routing through my rails app. I have defined all require routes in my routes.rb file ...