Re: [Rails] how to use form_with

2019-11-18 Thread fugee ohu
On Monday, November 18, 2019 at 3:31:13 PM UTC-5, Walter Lee Davis wrote: > > > On Nov 18, 2019, at 3:20 PM, fugee ohu > > wrote: > > > > > > > > On Monday, November 18, 2019 at 2:56:24 PM UTC-5, Rob Zolkos wrote: > > Have you read the Rails API docs and Rails Guides for usage of >

Re: [Rails] how to use form_with

2019-11-18 Thread Walter Lee Davis
> On Nov 18, 2019, at 3:20 PM, fugee ohu wrote: > > > > On Monday, November 18, 2019 at 2:56:24 PM UTC-5, Rob Zolkos wrote: > Have you read the Rails API docs and Rails Guides for usage of form_with? > > https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_with

Re: [Rails] how to use form_with

2019-11-18 Thread fugee ohu
On Monday, November 18, 2019 at 2:56:24 PM UTC-5, Rob Zolkos wrote: > > Have you read the Rails API docs and Rails Guides for usage of form_with? > > > https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_with > https://guides.rubyonrails.org/form_helpers.html > >

Re: [Rails] how to use form_with

2019-11-18 Thread fugee ohu
On Monday, November 18, 2019 at 2:56:24 PM UTC-5, Rob Zolkos wrote: > > Have you read the Rails API docs and Rails Guides for usage of form_with? > > > https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_with > https://guides.rubyonrails.org/form_helpers.html > >

Re: [Rails] how to use form_with

2019-11-18 Thread Rob Zolkos
Have you read the Rails API docs and Rails Guides for usage of form_with? https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_with https://guides.rubyonrails.org/form_helpers.html On Mon, Nov 18, 2019 at 2:25 PM fugee ohu wrote: > Trying to build a rails 5.2

[Rails] how to use form_with

2019-11-18 Thread fugee ohu
Trying to build a rails 5.2 form using form_with I get this error: ActionView::Template::Error (wrong number of arguments (given 1, expected 0)): <%= form_with @item, url: new_item_path, method: 'get' do |f| %> <%= f.select :item, :item_type_id, ItemType.all, :id, :name %>