Note that there are some explanatory texts on larger screens.

plurals
  1. PORails routing and http requests to application
    primarykey
    data
    text
    <p>I want my delivery controller to receive URL parameters similar to this:</p> <pre><code>https://www.xxxxx.com/messages/delivery?id=ones1sbn&amp;type=1 </code></pre> <p>My <code>.delivery</code> action in <code>MessagesController</code> looks like this:</p> <pre><code>def delivery sent_message = SentMessage.find_by_ref(params[:id]) if params[:type] == 1 sent_message.delivery = "Delivered" sent_message.save() elsif params[:type] == 2 sent_message.delivery = "Delivery Failure" sent_message.save() else sent_message.save() end end </code></pre> <p>Then the routing entry is</p> <pre><code>resources :messages do collection do get 'delivery' end end </code></pre> <p>What could be the reason I'm not able to receive the information from the incoming HTTP request?</p> <p>the filters in the messages controller are </p> <pre><code>before_filter :authenticate_user!, :except =&gt; [:delivery, :show] load_and_authorize_resource :except =&gt; [:delivery, :show] </code></pre> <p>rake routes for this action</p> <pre><code> delivery_messages GET /messages/delivery(.:format) messages#delivery </code></pre> <p>After all the update the error is now;</p> <pre><code>Template is missing Missing template messages/delivery, application/delivery with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :slim, :arb]}. Searched in: * "/var/www/html/webapp/app/views" * "/usr/local/lib/ruby/gems/1.9.1/gems/activeadmin-0.6.0/app/views" * "/usr/local/lib/ruby/gems/1.9.1/gems/kaminari-0.14.1/app/views" * "/usr/local/lib/ruby/gems/1.9.1/gems/devise-3.1.0/app/views" </code></pre> <p>Template was added but still no updates from the http request</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload