Project

hechima

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Hechima enables your application to show View without Controller.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 4.1.0
 Project Readme

Hechima

Enables to show View without Controller.

Gem Version

What is this?

Hechima can show View without Controller in Rails. If you works with designer and developing Rails apps. They don't want to touch "Black window". but you are busy! no time for execute "rails g controller" for them!! or Simply want to show HTML that was made ​​in the mock-up in your apps.

hechima

Usage

Add "Hechima.load self" to "routes.rb"

Rails.application.routes.draw do
  Hechima.load self
end

make view file.

touch app/views/about.html.erb
#=> localhost:3000/about

It can show nested directory

mkdir app/views/company
touch app/views/company/about.html.erb
#=> localhost:3000/company/about/

mkdir app/views/company/contact
touch app/views/company/contact/help.html.erb
#=> localhost:3000/company/contact/help/

Only if filename is "index.html.erb", the url makes like this.

mkdir app/views/contact
touch app/views/contact/index.html.erb
#=> localhost:3000/contact

License

This project rocks and uses MIT-LICENSE.

Author

Yuto Ogi