Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5971507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:31:32+00:00 2026-05-22T20:31:32+00:00

I run through this Making a Cookbook tutorial (http://javascriptmvc.com/docs.html#&who=getstarted) Since I work with rails

  • 0

I run through this Making a Cookbook tutorial (http://javascriptmvc.com/docs.html#&who=getstarted)

Since I work with rails i changed the input names from name and description to recipe[‘name’] and recipe[‘description’]

Saving the record via rails work fine, but as soon as JMVC updates the view it renders [object Object] instead of the title/description

Controller:

'form submit': function( el, ev ){
    ev.preventDefault();
    new Cookbook.Models.Recipe(el.formParams()).save();
},
'recipe.created subscribe': function( called, recipe ){
    $("#recipe tbody").append( this.view("list", {recipes:[recipe]}) );
    $("#recipe form input[type!=submit]").val(""); //clear old vals
},

Form:

<form>
        <div class="field">
        <label for="recipe_name">Name</label><br>
        <input type="text" size="30" name="recipe[name]" id="recipe_name">
      </div>

        <div class="field">
            <label for="recipe_description">Description</label><br>
            <input type="text" size="30" name="recipe[description]" id="recipe_description">
          </div>
    <input type='submit' value='Create'/>
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:31:33+00:00Added an answer on May 22, 2026 at 8:31 pm

    Ask questions on JavaScriptMVC’s forum. I don’t check Stackoverflow that often.

    The problem is you should be passing to Recipe(el.formParams().recipe). Model expects attributes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that I run through the command line and I wanted
I'm building an application that needs to run through an XML feed but I'm
I'm putting some page content (which has been run through Tidy, but doesn't need
I have a java script code that works fine when run through a browser,
Guys, can someone give me a brief run through of how to change the
I'm having issues passing arguments through run to the windows side To demonstrate, it
I would like to run a job through cron that will be executed every
I'm trying to run powershell commands through a web interface (ASP.NET/C#) in order to
I need to create a BAT file to run an application through telnet, but
I run all my integers through a (int)Integer to make them safe to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.