Is there any way in Phoenix to only generate a controller, without a model? In rails I will do it with
rails g controller Home index about
As in version 1.2, there is no direct mixing task. Checked in the docs https://hexdocs.pm/phoenix/Phoenix.html
Although you could use a different method, as pointed out by @michalmuskala, use
mix phoenix.gen.html --no-model
You can use the --no-modelfor option mix phoenix.gen.json/htmlto skip models and migrations, effectively getting only the controller.
--no-model
mix phoenix.gen.json/html
Source: https://habr.com/ru/post/1650396/More articles:how to get subscription validity period in inapp v3 android - androidmysql-python installation error and none of the solutions mentioned worked - mysql-pythonHow to wrap part of the whole text_node nodeValue object in an html element? - javascriptUITableView in UIView Swift - iosHow do I determine if a user is authorized by the Apple Health Kit? - iosWhat is the meaning of \ 0 in perl? - perlКаков наилучший стабильный алгоритм сортировки, когда мое ключевое пространство содержит только два элемента - performanceSpark R 2.0 is very slow - rHow to automatically update gdb in tui mode? - python&& does not work for fields of the required form - phpAll Articles