Skip to content

Add support for Rails 5. #89

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

Closed
wants to merge 2 commits into from
Closed

Conversation

dixpac
Copy link
Contributor

@dixpac dixpac commented Nov 14, 2021

Giving this another go, since we need this in order to add tailwindcss generator for the view_component.

View component is rails >= 5

Giving this another go, since I need this in order to add tailwindcss
generator for the `view_component`.

View component is `rails >= 5`
@dixpac dixpac marked this pull request as draft November 14, 2021 15:19
@dixpac dixpac marked this pull request as ready for review November 14, 2021 15:37
@dixpac
Copy link
Contributor Author

dixpac commented Nov 14, 2021

@dhh I have opened the PR on view_components that fixes the issue with (tailwindcss-rails <-> view_component).
But, view component depends on rails >= 5.

So, if you think that supporting rails 5 makes sense, merge and deploy(🙏🏼 ) than I can finish the work on view_component PR 😄

@dixpac
Copy link
Contributor Author

dixpac commented Nov 22, 2021

@dhh pinging 😄

@dhh
Copy link
Member

dhh commented Nov 22, 2021

I'm not really keen on supporting Rails 5. I don't think we need to support the same as view_component does. We can still make the two compatible.

@dixpac
Copy link
Contributor Author

dixpac commented Nov 22, 2021

Me neither. There is possibility to generate components wihtout the problem like this:
bin/rails g component <Name> --template-engine=erb

Main thing here ViewComponent/view_component#1098 is that view_component depends on rails 5 in their tests.

I'm closing this then, I will try to find the other way

@dixpac dixpac closed this Nov 22, 2021
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

Successfully merging this pull request may close these issues.

2 participants