Class: Views::Resources::New

Inherits:
Form
  • Object
show all
Defined in:
app/views/resources/new.rb

Instance Method Summary collapse

Instance Method Details

#form(&block) ⇒ Object



6
7
8
# File 'app/views/resources/new.rb', line 6

def form &block
  form_for resource, url: collection_url, &block
end

#page_titleObject



2
3
4
# File 'app/views/resources/new.rb', line 2

def page_title
  "New #{resource_name}"
end