Ash Framework (Pragmatic Bookshelf)
Latest Threads About This Book

For example the following test:
test "stores the actor that updated the record" do
actor = generate(user(role: :admin))
...
New

The final section on policies states that
We can’t combine built-in policy checks, so we’ll have to fall back to writing
an expression...
New

Just before finishing this page’s section there’s a sentence that reads:
We can now update how we call form_to_create_action, specifyin...
New

Just finished the whole burrito, and it was delicious. 0ne suggestion is to eschew the use of function captures. Your audience probably i...
New

clicking the star to unfollow an artist doesn’t have the JS.transtion(“animate-spin”) thingy, which seems unintentional :slight_smile:
l...
New

Users going through the book on safari, at least, get a bunch of annoying errors about favicon missing on each page load:
[debug] ** (Ph...
New

Maybe “repetition” or “duplication” would be better
New

Code samples generally use atoms for the role value:
policy action(:destroy) do
authorize_if actor_attribute_equals(:role, :admin)
e...
New

“Now if you click any of the buttons that link to pages focussed on forms,”
focussed → focused
New

Running through the example, clicking on an already-used magic link email brings me to the magic link “sign in” page, clicking the magic ...
New

Adding an authentication strategy, after successfully adding ash_authentication (and successfully recompiling picosat), the generator see...
New

On p137 (version B6), under the section Cutting out repetitiveness with bypasses, it says
policy action(:force_update) do
authorize_...
New

Typo in number of chapters inside the phrase This book is divided into nine chapters on page xxii.
New

Hello!
I’m neither an Elixir nor Phoenix or Ash expert, but I believe I found misinformation in the A brief detour into LiveView process...
New

In the introduction, 2nd Paragraph first sentence:
... one resources does not a full application make
New

Title: Ash Framework B5: subheading typo (page 96)
In the book:
Adding informative descriptiont ← this
Some of the defaults in the g...
New

Title: Ash Framework: Incorrect return of {:ok, …} for bang (!) function (page 20)
In the section Defining a destroy action:
iex(3)>...
New

Running that command results in:
% mix ash.gen.domain Tunez.Music
Issues:
* lib/tunez/music.ex: Igniter would have produced invalid sy...
New

Write naive tests for your policies that test as many combinations of per-
missions as possible, to verify that the behaviour is what yo...
New

in Chapter 6. Authorization: What Can You Do? • 138
06/lib/tunez/accounts.ex
base_route"/users", Tunez.Accounts.User do
# ...
➤ post...
New

Tunez is secure, authorization-wise, as it is right now, but there’s no guarantee that it will stay thay way.
New

Ash Framework B4: passing map instead of string in search_artists! (page 85)
Custom Actions with Arguments • 67
Hi! search_artists! a...
New

We do need some way of changing an user’s role though, otherwise Tunez will never have any editors or admins!
I expected ‘a user’s role...
New

Ask Me Anything with
Zach Daniel and Rebecca Le
@zachdaniel and @sevenseacat
On February 24 and 25, we are giving you a chance to ask...
New

Dear Jessica.
I am reading the new Chapter 8 now.
On page 200 we create a Test Album with 3 Tracks via iex.
Then the editing of the Tr...
New

There is a mention on page 199 that support for atomic updates will be improved in the future. Could there be a link to the github issue ...
New

When starting fresh with the chapter-6 branch (commit hash #bff7f585), the second test in chapter 7 fails with the following error:
1)...
New

When starting Chapter 7 (All About Testing), there is an aside that says:
There’s no code for you to write in this chapter — Tunez come...
New

The ash_phoenix.gen.live generator should be mentioned somewhere in the book because while it is not needed in any of the example given t...
New

In the “Defining an update action” section
artist = Tunez.Music.get_artist_by_id!("an-artist-id")
should be:
{:ok, artist} = Tunez...
New
Most Active This Week
Most Active This Month

The regex on page 48 is hard to read:
~r/(^https:\/\/|\/images\/).+(\.png|\.jpg)$/
It can be improved by changing the delimiters which ...
New

Running through the example, clicking on an already-used magic link email brings me to the magic link “sign in” page, clicking the magic ...
New

Typo in number of chapters inside the phrase This book is divided into nine chapters on page xxii.
New

The final section on policies states that
We can’t combine built-in policy checks, so we’ll have to fall back to writing
an expression...
New

On p137 (version B6), under the section Cutting out repetitiveness with bypasses, it says
policy action(:force_update) do
authorize_...
New

Just finished the whole burrito, and it was delicious. 0ne suggestion is to eschew the use of function captures. Your audience probably i...
New

Users going through the book on safari, at least, get a bunch of annoying errors about favicon missing on each page load:
[debug] ** (Ph...
New

Just before finishing this page’s section there’s a sentence that reads:
We can now update how we call form_to_create_action, specifyin...
New

For example the following test:
test "stores the actor that updated the record" do
actor = generate(user(role: :admin))
...
New

clicking the star to unfollow an artist doesn’t have the JS.transtion(“animate-spin”) thingy, which seems unintentional :slight_smile:
l...
New

Maybe “repetition” or “duplication” would be better
New

Adding an authentication strategy, after successfully adding ash_authentication (and successfully recompiling picosat), the generator see...
New

Code samples generally use atoms for the role value:
policy action(:destroy) do
authorize_if actor_attribute_equals(:role, :admin)
e...
New

“Now if you click any of the buttons that link to pages focussed on forms,”
focussed → focused
New
Most Active This Year

Explore the power of Ash Framework by modeling and building the domain for a real-world web application.
Rebecca Le @sevenseacat and ...
New

Ask Me Anything with
Zach Daniel and Rebecca Le
@zachdaniel and @sevenseacat
On February 24 and 25, we are giving you a chance to ask...
New

I created my own tunez app from scratch using mix new tunes_hg
I successfully followed the book creating the ash_resource ‘artist’.
I c...
New

In the “Defining an update action” section
artist = Tunez.Music.get_artist_by_id!("an-artist-id")
should be:
{:ok, artist} = Tunez...
New

in Chapter 6. Authorization: What Can You Do? • 138
06/lib/tunez/accounts.ex
base_route"/users", Tunez.Accounts.User do
# ...
➤ post...
New

Title: Ash Framework B5: subheading typo (page 96)
In the book:
Adding informative descriptiont ← this
Some of the defaults in the g...
New

Hello!
I’m neither an Elixir nor Phoenix or Ash expert, but I believe I found misinformation in the A brief detour into LiveView process...
New

Hi Rebecca. Thanks for your quick reply.
I cloned the starter app.
But I think it doesn’t include the blank project?
I wanted to start...
New

In the introduction, 2nd Paragraph first sentence:
... one resources does not a full application make
New

When starting fresh with the chapter-6 branch (commit hash #bff7f585), the second test in chapter 7 fails with the following error:
1)...
New

Dear Jessica.
I am reading the new Chapter 8 now.
On page 200 we create a Test Album with 3 Tracks via iex.
Then the editing of the Tr...
New

When starting Chapter 7 (All About Testing), there is an aside that says:
There’s no code for you to write in this chapter — Tunez come...
New

There is a mention on page 199 that support for atomic updates will be improved in the future. Could there be a link to the github issue ...
New

On page 72, near the bottom is should be " it supports sorting on
multiple columns, when we only have a single drop"
New

Write naive tests for your policies that test as many combinations of per-
missions as possible, to verify that the behaviour is what yo...
New
Most Active Last Three Years

Since the project is using AshPhoenix, adding a simple paragraph about ash_phoenix.gen.live could probably help newcomers to the Ash fram...
New

I’ve worked through the book and it starts to click in my head. What’s missing for me are examples how to fallback to some lower level st...
New

On page 15 there we load a seed file with fake bands names and info. One of them is in French and the name is not grammatically correct, ...
New

Page 113 has the text “we can’t trust everyone in it to have free reign”.
This is a famous eggcorn, the correct expression is free rein....
New

The ash_phoenix.gen.live generator should be mentioned somewhere in the book because while it is not needed in any of the example given t...
New

Title: Ash Framework: Incorrect return of {:ok, …} for bang (!) function (page 20)
In the section Defining a destroy action:
iex(3)>...
New

We do need some way of changing an user’s role though, otherwise Tunez will never have any editors or admins!
I expected ‘a user’s role...
New

Ash Framework B4: passing map instead of string in search_artists! (page 85)
Custom Actions with Arguments • 67
Hi! search_artists! a...
New

Running that command results in:
% mix ash.gen.domain Tunez.Music
Issues:
* lib/tunez/music.ex: Igniter would have produced invalid sy...
New

“intractible” should be “intractable”
New

New

Because policies as part of resource definitions, should be “Because policies are part of resource definitions”
New

Tunez is secure, authorization-wise, as it is right now, but there’s no guarantee that it will stay thay way.
New
Most Active Over Three Years
Publisher:
Pragmatic Bookshelf
Latest in Ash Framework
Get money off!

The Pragmatic Bookshelf
35% off any eBook
Use the coupon code "devtalk.com" to get 35% off any eBook published by PragProg!