Alan Reid

Joined

55,860 Experience
467 Lessons Completed
8 Questions Solved

Activity

Posted in Creating A Blog Post Model Discussion

Lucy, silly question, but have you made sure the DB has been created first?

Posted in How can I solve this problem?

Looks like a docker issue, SSH into the server and view the container logs:

docker logs <container_id>

Then look for any errors or unusual messages in the logs that might indicate why the service didn’t start correctly.

Posted in What do you listen to while coding?

Yeah there does seem to be a fair amount recently

Posted in Where can I get started?

If you want to learn start here...
https://gorails.com/start

Posted in I get error when deploy to heroku

You are trying to deploy to a linux system, when your app was built using a windows based system?

Make sure you are targeting all platforms
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

Posted in Multi-step forms, without a gem?

I am looking for a good way to get multistep forms working, I have seen a couple of ways to do this and each has their own merits.

Now I would like to be able to navigate back and forth between the steps, so saving the state maybe needed. I am not sure if to save at each step, and say x step was not complete the next time the log in, or make them start again.

So any input would be awesome from those who have tackled the multi-step journey.

Thanks
Alan

Posted in Trello Clone with VueJS and Rails

Wondering if anyone could shed any light on how to only return cards for the logged in user?

So basically when a user goes into that board, he would only see the cards he has created.

Posted in Where Should I Start To Master Ruby on rails?

Chris has made a great place to start - https://gorails.com/start

You could also check out The Rails Tutorial by Michael Hartl. That is where most of us started out.

Truelayer is probably your best bet, but there are a few other options. Remember you will need regulation if you don’t use a 3rd party who has that already.

Posted in Episode on GraphQL

As I posted before, this site has a great tutorial - https://www.howtographql.com/

Posted in Can anyone suggest me best Ruby on Rails 5 book?

I would assume they are asking about books relating to ruby/rails programming, not a thriller.

Posted in Dynamically create sass variables in rails

You can pass the variable in, you’d need to create a css class for that particular element. For example on a flash, you would have success and error Classes, and pass that class into the .erb

Posted in Can anyone suggest me best Ruby on Rails 5 book?

No problem, Chris has release a great series on the site for beginning rails. It’s even on YouTube.

https://youtube.com/playlist?list=PLm8ctt9NhMNV75T9WYIrA6m9I_uw7vS56

Posted in Global Autocomplete Search Discussion

Is anyone else getting the following error when trying to search for a 2nd time?

TypeError: undefined is not an object (evaluating 'EasyAutocomplete.getHandle(b).getSelectedItemData')

Posted in how to unsubscribe?

If you're talking about the GoRails newsletters, there is always a link at the bottom of the email. You can unsubscribe via that.

Posted in how to make the forum lagg free

I think you may want to take a look at your internet connection, this is a common reason for lagging websites.

If other people are not reporting the same issue, then I would start with looking locally.

Thanks for the reply mate, so basically i want to store

{
  "energy_provider": {
      "name": "data",
      "renewal": "data"
  },
  "insurance_provider": {
      "name": "data",
      "renewal": "data"
  }
}

Do you think it would be best to have JSONB fields in the table to store these then? Or do you know of a more efficient way you could suggest please?

I found this article, which seems to be interesting. And maybe worth a look at.

Posted in Episode on GraphQL

I learnt all about graphQL over at How to GraphQL it's a good resource, and you can select different paths not just Ruby.

Posted in New Design!

Agreed, this new design is pretty slick Chris! I am also loving tailwind and the whole utility first CSS library.

Posted in Seed local database

Once you have made you project, you should run rails db:create to create your database.

It would then do worth looking at The Rail Tutorial which gives a great overview of the basics about Rails. Chapter 2 will give you a good idea on how to deal with migrations, and general DB stuff.