```Hello everyone !! I am French I am 34 years old...
# general
c
Copy code
Hello everyone !! I am French I am 34 years old :woman::skin-tone-3:, I am in retraining by learning fullstack. I discovered Solidus it's great but I'm still a baby dev. I often have questions about site changes, would any of you be ok to help me out when I have questions? Do not hesitate to write to me in private! See you soon !! xoxo
k
Hello and welcome. Feel free to ask any question here!
👍🏼 1
c
The problem is that I will probably have hundreds of stupid little questions. 🤯
k
We will try to help with them, as soon as they are relevant to Solidus, it’s not a problem. If needed someone will point you to the right resources to study.
s
👋 Hey @coquerel, welcome! If you haven't already please join #C0JBKDF35 - you're welcome to post any Solidus questions there. We have a really helpful group here! If you have more general Rails questions to ask, I'd recommend joining the Rails slack - you'll find a lot of helpful folks there as well!
🙏🏼 1
c
Copy code
Ok it's super nice, so to start I would like to know how on this kind of article, to offer to choose the size AND the color, without having all the photos on the side. For example, on this black sweatshirt, being able to choose S M or L for example, but also buttons with red and green. And in photo on the left side, just a photo of the sweatshirt in the 3 colors. On the other hand, if you choose a specific color, for example red, only photos of the red sweatshirt are displayed, but with other profiles. Next, I would like to know how to change the solidus icon in the tab. Thanks a lot for your answers :)
Im here. Have problem config now 🥺 do you know i can change the round choice color of the article ? My color is pink and the rond here is white 😜
please Help 🙏🏼
J'ai une erreur qui dit ne pas trouver mon user
k
Hey @coquerel, what’s the error?
BTW, I suggest you to take a HTML/CSS course as first thing, it’s kinda required to debug a Rails application’s frontend problems you will face. After that, this documentation page guides you through the main concept of the assets pipeline in Rails: https://guides.rubyonrails.org/asset_pipeline.html
c
@kennyadsl tks for your answer. In fact, i would like add to my site solidus spree, a scaffold event and a model of an inner join. So in order here are the orders I made: 1. rails g scaffold Event title:string description:text strat_date:datetime duration:integer price:integer location:string. 2.rails g model Attendance. 3.rails g model Registration event:references user:references. But here I have an error "relation "users" does not exist" so 4. rails g migration AddUserIdToRegistrations user:references. 5.rails g migration AddEventIdToRegistrations event:references. But here is'n okay too for the same raison. So I do : 6. rails generate migration CreateUsers. But it's not okay because "Multiple migrations have the name CreateUsers". Maybe I would do merging my user and admin user objects into the same table and then using a boolean flag to dictate if someone is an admin or not. But I don't now how to do 😕
k
Solidus users already have roles, I don’t think you need this.
are you able to access the admin panel and the users tab?
c
Yes if I cancel my last orders
on peut changer leurs rĂ´les d'accord mais comment les relier Ă  event ?
oups
we can change their roles agree but how to link them to event?
k
what do you mean exactly with “event”?
Oh, the event resource you were talking about before, got it.
the table name for the user provided by solidus is
spree_user
, so you should use
spree_user:references
instead
👀 1
👍🏼 1
if you open
db/schema.rb
, you’ll see a representation of the database, you can refer to that to understand how the database is structured, and table names
c
hi man, i redid the app this morning because i broke the other one doing a db:drop rails. It's not serious. For the moment I have this as a problem: - I still can't change the logo of the tab. favicon? - I don't know why but my admin model was not created, which caused me class problems, I had to add "Admin::" in several controllers, and currently I I suddenly have problems on my roads. - then, I cannot manage the creation of an event from the admin interface, I must be on the user side but logged in as an admin to create one. Is it possible to add this on the admin interface side?? - finally I separated the categories into 3. One for breeding, one for the event, and one for the shop. So I have to do basically 3 sites in 1. • Thanks in advance