Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource with two words doesn't save properly #29

Closed
axelclark opened this issue May 19, 2020 · 3 comments
Closed

Resource with two words doesn't save properly #29

axelclark opened this issue May 19, 2020 · 3 comments

Comments

@axelclark
Copy link
Contributor

When I submit a form for a resource with two words in the name, I receive an error that all required forms are blank.

It appears in might be an error with the two words not separated with an underscore in the parameters:

  Parameters: %{"_csrf_token" => "XiADUzgRR1JoGh4TRC8YCgEPETRoK1l5hMV7Yy341lQ87Zs26W_N_jdD", "championship_result" => %{"championship_id" => "52", "fantasy_player_id" => "531", "id" => "", "inserted_at" => %{"day" => "1", "hour" => "0", "minute" => "0", "month" => "1", "year" => "2015"}, "points" => "8", "rank" => "1", "updated_at" => %{"day" => "1", "hour" => "0", "minute" => "0", "month" => "1", "year" => "2015"}}, "context" => "ex338", "resource" => "championshipresult", "submit" => "Save"}

See "championship_result" => %{"data" => "data"} & "resource" => "championshipresult".

I was able to save my "owners" resource, but also couldn't save my "fantasy_leagues" resource.

Successful owners resource:

  Parameters: %{"_csrf_token" => "bz0tFhQPPDlrLwx-JR8iWg4rJz1_Lw5lYPxrugH_2YCUVjIb9siGHn3X", "context" => "ex338", "owner" => %{"fantasy_team_id" => "53", "id" => "", "inserted_at" => %{"day" => "1", "hour" => "0", "minute" => "0", "month" => "1", "year" => "2015"}, "updated_at" => %{"day" => "1", "hour" => "0", "minute" => "0", "month" => "1", "year" => "2015"}, "user_id" => "2"}, "resource" => "owner", "submit" => "Save"}
@axelclark axelclark changed the title Resources with two words doesn't save properly Resource with two words doesn't save properly May 19, 2020
@aesmail
Copy link
Owner

aesmail commented May 20, 2020

Thank you @axelclark !
Your reported issues are making kaffy much better!
I have always tried, for some reason, to stick to "single-word" resources subconsciously.

I will fix this in the next release which should be within a few hours.

@aesmail
Copy link
Owner

aesmail commented May 20, 2020

This is fixed in master.
v0.6.2 will be released shortly.

@aesmail aesmail closed this as completed May 20, 2020
@aesmail
Copy link
Owner

aesmail commented May 20, 2020

v0.6.2 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants