GithubHelp home page GithubHelp logo

How to create a new page? about selfstarter HOT 2 CLOSED

apigy avatar apigy commented on June 9, 2024
How to create a new page?

from selfstarter.

Comments (2)

cullenbmacdonald avatar cullenbmacdonald commented on June 9, 2024

This isnt how rails applications works. You would need to create a method in some controller that is told to render the new view you created as well as set up the routes.

from selfstarter.

alexshk avatar alexshk commented on June 9, 2024

If you are not a programmer then I suppose it will be better to find one 😄

To create page at /preorder/contactus.html:

  1. Add line match '/preorder/contactus' => 'preorder#contactus' to config/routes.rb (anywhere between Selfstarter::.. and end)
  2. Create app/views/preorder/contactus.html.erb and put your html there.
  3. Create empty method at app/controllers/preorder_controller.rb:
def contactus
end
  1. Restart your server.

from selfstarter.

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.