Coder Social home page Coder Social logo

Comments (2)

jejacks0n avatar jejacks0n commented on August 23, 2024

Hi Dom, while I'm willing to provide support for Mercury Editor, I'm unable to provide support for everything else that's rails based. I understand that it can be difficult to determine where an error is coming from (server vs. javascript), but this one's rails.. You can assume this any time you see a HTTP 500 response.. You can also determine this from the "500 Internal Server Error" that you see at the top of that response.

It looks like you're building a form using a hash.. formtastic typically expects a model / openstruct that responds to specific methods. Try the baby steps the other way first -- making the models and such.. not using mercury.. then integrating it into mercury might be easier.

from mercury.

jocubeit avatar jocubeit commented on August 23, 2024

The code I provided above is only a slight alteration from your own example snippet in the gem:

mercury/app/views/mercury/snippets/example_options.html.erb

The only difference is the select input field. From what I can see this is valid Formtastic syntax. I may be using a hash but I've taken that from your own example, and since that works, I don't see why this doesn't.

I will take your advice and build a database-backed AR model and see if I get it to work that way.

Thanks for your time.

from mercury.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.