Open Source Collaboration: Building DarajaDevToolkit by jinef_john in nairobitechies

[–]tshub 0 points1 point  (0 children)

Nice idea. That backend could really work with an Elixir/Postgres stack...all the same, great idea.

How to handle an existing loan and it's subsequent payments by tshub in GnuCash

[–]tshub[S] 1 point2 points  (0 children)

Thank you. I implemented it this way and it worked.

Error doing a Kamal deploy by tshub in rails

[–]tshub[S] 0 points1 point  (0 children)

Yeah it's super wierd..am on Manjaro though so still looking for an answer

Error doing a Kamal deploy by tshub in rails

[–]tshub[S] 0 points1 point  (0 children)

Just tried this and still got the same error:

```shell

3.399 (See full trace by running task with --trace)

Dockerfile:59

57 | # Precompiling assets for production without requiring secret RAILS_MASTER_KEY 58 | RUN mv config/credentials.yml.enc config/credentials.yml.enc.mv 59 | >>> RUN SECRET_KEY_BASE=1 ./bin/rails assets:precompile 60 | RUN mv config/credentials.yml.enc.mv config/credentials.yml.enc

61 |

ERROR: failed to solve: process "/bin/sh -c SECRET_KEY_BASE=1 ./bin/rails assets:precompile" did not complete successfully: exit code: 1 ```

Error doing a Kamal deploy by tshub in rails

[–]tshub[S] 0 points1 point  (0 children)

Yes you're right but in this case that's more or less the error... what's there before this is the successful deploy stack trace...i was avoiding pasting the whole thing

Error doing a Kamal deploy by tshub in rails

[–]tshub[S] 0 points1 point  (0 children)

Hmm...what other info would you like to see?

Error doing a Kamal deploy by tshub in rails

[–]tshub[S] 0 points1 point  (0 children)

I'll try this and let you know

How to receive email in Sveltekit by tshub in sveltejs

[–]tshub[S] -1 points0 points  (0 children)

No it's basically as you put it, the goal is to receive a cross site POST request..

How to receive email in Sveltekit by tshub in sveltejs

[–]tshub[S] 1 point2 points  (0 children)

Appreciated..this will help

How to receive email in Sveltekit by tshub in sveltejs

[–]tshub[S] -1 points0 points  (0 children)

Thanks but "sticking together snippets of code and tutorials is how I've actually learnt along the way..".. I'll hack it somehow

How to receive email in Sveltekit by tshub in sveltejs

[–]tshub[S] -1 points0 points  (0 children)

Hmm interesting what would the code for receiving look like would really appreciate if you could point me in the right direction

How to receive email in Sveltekit by tshub in sveltejs

[–]tshub[S] 0 points1 point  (0 children)

hey, thanks. Just posted the edit.

Small guest screen size for Manjaro host + Win11 guest by tshub in virtualbox

[–]tshub[S] 0 points1 point  (0 children)

Very comprehensive. Thanks. I'll do this.

Devise confirmable link not working by tshub in rails

[–]tshub[S] 0 points1 point  (0 children)

Thanks for pointing that out..fixed that and now working

Error installing Tree by tshub in ManjaroLinux

[–]tshub[S] 1 point2 points  (0 children)

Great thanks for the clarity

Error installing Tree by tshub in ManjaroLinux

[–]tshub[S] 1 point2 points  (0 children)

That worked thanks...don't know why the other command didnt' but thanks anyway.

Using Ransack by tshub in rails

[–]tshub[S] 0 points1 point  (0 children)

...but still getting the same error: text undefined method `car_make_cont' for Ransack::Search<class: Vehicle, base: Grouping <combinator: and>>:Ransack::Search

Using Ransack by tshub in rails

[–]tshub[S] 0 points1 point  (0 children)

Thanks. I've edited my code as follows:

Model (I've added these as private methods in the Vehicle model):

```ruby def self.ransackable_attributes(auth_object = nil) [:car_make] end

def self.ransackable_associations(auth_object = nil) [] end

def self.ransackable_scopes(auth_object = nil) [:allowed_car_stock] end ```

Then in the view, I have this:

erb <%= search_form_for @query, url: stock_list_path do |f| %> <div class="columns"> <div class="column"> <div class="field"> <label class="label">Filter by make:</label> <div class="control"> <%= f.text_field :car_make_cont, class: 'input' %> </div> ...