ok, it looks like my other form

<%= simple_form_for @gallery do |f| %>
    <% if @gallery.errors.any? %>
        <div id="error_explanation">
          <h2>
            <%= "#{pluralize(@gallery.errors.count, "error")} prohibited this 
image from being saved:" %>
          </h2>
          <ul>
            <% @gallerys.errors.full_messages.each do |msg| %>
                <li>
                  <%= msg %>
                </li>
            <% end %>
          </ul>
        </div>
    <% end %>



this is the error i'm getting...


NoMethodError in Gallery#new

Showing 
*/Users/joeguerra/RubymineProjects/portfolio/app/views/gallery/_form.html.erb* 
where line *#12* raised:

undefined method `galleries_path' for 
#<#<Class:0x007feecb78ac50>:0x007feec7571aa8>
Did you mean?  gallery_path

Extracted source (around line *#12*):

10
11
12
13
14
15
              

</style>
<%= simple_form_for @gallery do |f| %>
    <% if @gallery.errors.any? %>
        <div id="error_explanation">
          <h2>

Trace of template inclusion: app/views/gallery/new.html.erb


I'm using... in my routes file.


get resources :gallery



Thanks,

Joe





On Monday, September 11, 2017 at 1:43:32 PM UTC-4, Ben Edwards wrote:
>
> Ineptitude;):  
>
> Should be http://guides.rubyonrails.org/routing.html.
>
> Ben
>
> On Monday, September 11, 2017 at 6:33:09 PM UTC+1, Hassan Schroeder wrote:
>>
>> On Mon, Sep 11, 2017 at 10:16 AM, Ben Edwards <[email protected]> 
>> wrote: 
>>
>> > http://guides.rubyonrails.org/v3.1.3/routing.html may help. 
>>
>> Uh, any particular reason to post a link to a guide for a version of 
>> Rails that's been unsupported for a very long time? 
>>
>> -- 
>> Hassan Schroeder ------------------------ [email protected] 
>> twitter: @hassan 
>> Consulting Availability : Silicon Valley or remote 
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1f7c9cca-33f0-4871-b7be-643637b3418d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to