Comments (2)
Feel free to delete this, it gets complicated with the opts to each function, so probably better to implement something opinionated in the application
from ash_phoenix.
I've altered the behavior (and documentation) of the params
option to submit
.
So now it would look like:
def handle_event("submit", %{"form" => params}, socket) do
case AshPhoenix.Form.validate(socket.assigns.form, Crm.Accounts, params: params) do
{:ok, _} ->
...
end
end
from ash_phoenix.
Related Issues (20)
- Syntax error in ash_phoenix.gen.live generated code. HOT 1
- Duplicate error messages on embedded form HOT 2
- mix ash_phoenix.gen.live Error HOT 1
- Invalid select input for atom attributes with one_of constraint
- mix ash_phoenix.gen.live doesn't add fields to show.ex HOT 3
- `keep_live` access callback result in `subscribe` HOT 1
- Support phoenix_html 4.0 on new phoenix apps HOT 1
- `Form.for_create` and `Form.for_update` don't seem to validate that the action exists with that method
- Write a LiveView specific tutorial HOT 2
- Write a Phoenix Contexts -> Ash Resources guide HOT 2
- Documentation Example Error HOT 2
- An ability to drop some values from the form struct HOT 1
- Missing logo file causes `mix doc` to fail. HOT 2
- Form Validation crashes on invalid values in decimal-fields HOT 3
- Phoenix 1.7 version? HOT 2
- AshPhoenix.Form.submit doesn't apply `change` from action. HOT 4
- Broken "philosophy" link in https://github.com/ash-project/ash_phoenix/blob/v1.2.10/documentation/tutorials/getting-started-with-ash-and-phoenix.md HOT 1
- Rename `FilterForm.to_filter!` HOT 1
- Documentation for `accessing_from` does not exist (or I can't find it) HOT 1
- Setting actor in nested forms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ash_phoenix.