Integrate tailwind theme in rails 7 tailwind app - ruby-on-rails

I have created a new rails 7 application based on tailwind and esbuild. On the other hand I have bought a tailwind theme (https://yeti.yetithemes.net/) and I am trying to integrate it in my rails application, but I am unable to get it work.
This is the file structure for this theme
I have added the tailwind.config.js code from the theme in rails project config/tailwind.config.js
I have copied the files from theme in src/assets/css/*.cssin rails project app/assets/stylesheets/ and imported them in app/assets/styleshhets/application.tailwind.css as #import "./theme_styles"
After run yarn install including the theme package.jsoncontents to rails app, I have imported all javascript libraries in app/javascript/application.js
I have tested a lot of possibilities but I am not able to do it work. On the other side I am not been able to find a tutorial about how to get it.
Any idea or help? I will be very gratefull

Related

I've problem with electrron-vue and I need a solution

I've installed electron-vue to use vue with electron-app. When I wrote the following command npm run dev an error was shown to me, I found listing directory instead of the LandingPage.
The electron-vue is not being updated at this time. (currently, electronic version 2.x)
There's a boilerplate that I forked the electron-vue and updated all the modules with the latest modules. The use method is the same and we have added the ui framework and css-precessor.
Electron 5
Vue-CLI 3
Babel 7
Vue 2.6
css-preprocessor
Sass
Less
Stylus
UI Framework
Quasar 1.x
Vuteify 2.x
We recommend you try it.
https://github.com/kdydesign/vue-electron5

Upgraded to Bootstrap 4 - still serving Bootstrap v3 in ASP.Net MVC 5 project

I have Boostrap v4 script files installed in my project ~/Content and ~/Script folders, but when run my project uses Boostrap v3! Why, and how to force it to use v4?
It is an MVC 5 project contained in a solution with a UWP project. I have upgraded the MVC project to Bootstrap v4, which has updated all of the Bootstrap files to v4. I'm not using a CSS preprocessor. My BundleConfig.cs is unchanged, and seems to load whatever version is found in the ~/Scripts folder:
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
But when run, if I interogate the HTML then the bootstrap file served is v3:
When run, Visual Studio generates a temporary "Script Documents" folder underneath the parent solution for displaying "client-side script files generated from server-side scripts" - and the Bootstrap file loaded here is v3:
I noticed that the upgrade to v4 did not download updated versions of the boostrap-theme.css/.css.map/.min/.min.css.map files - but pages and elements load fine with these files removed from the project so I think its unrelated.
After updating the Bootstrap script files to v4, what other configurations are required for ASP.Net MVC to load Bootstrap v4 script files from it's project ~/Content and ~/Script files?
Clearing the browser cache did it for me

How to import Rails application folder in Aptana Studios

I am new to Aptana Studios. I am also new to Ruby and Rails. I have created a new application with Rails by typing command in command line as
rails new test
Now I want to import it in Aptana Studios. In Eclipse while importing an existing Java project, we look for a folder containing .project file and import it. But in Rails application folder I did not find any such folder. So can anyone help me to do that? Thank you.
You don't need a pre-existing project file, just import the root folder.
File -> New -> Rails Project
Select the location of your existing application and the dialog will change to state that there are existing files and the generator will not be run.

How do I run alternative Rails generators in NetBeans?

Does anybody know how I can run alternative Rails generators in Netbeans 6.7? I have installed nifty-scaffold and want to want to find how I can run the following command from the IDE:
script/generate nifty_scaffold etc ....
I have installed the nifty-scaffold gem, but it does not appear in the drop-down list when I select 'Generate' for my project.
(I am running NetBeans on Windows)
It would be very easy to add new generator extensions in netbeans. Netbeans doesn't do it
automatically, you need to do it manually. I am using NetBeans ver 6.8 and installed nifty generators successfully in netbeans by following procedure:
1. Download gems file of ryanb's nifty generator freely available.
2. install in netbeans from tools->rubygems-> install Local
3. go to the directory C:\Program Files\NetBeans 6.8\ruby2\jruby-1.4.0\lib\ruby\gems\1.8\gems\rails-2.3.5\lib\rails_generator\generators\components. It shows all the generators available in netbeans.
4. go to the directory C:\Program Files\NetBeans 6.8\ruby2\jruby-1.4.0\lib\ruby\gems\1.8\gems\nifty-generators-0.3.0\rails_generators. It shows the nifty generators which you have just now installed.
5. Copy all nifty generators to components directory shown in step 3.
6. right click on project and click generate and you will find the udpated list of all new generators
By
Vikas Maan
I assume that when you say you installed the gem, you did so through the Generate...->Install Generators button?
However, it does seem to be a defect. I've tested it too on Windows & Netbeans 6.7 and reproduced your problem - Netbeans can't find the generators even though script/generate can. It's probably worth shooting an email off to the Ruby Netbeans mailing list and/or filing a bug here.
You can create a folder named "generators" in your "lib" folder and put any generator folders in it and it should be working.
Or put that "generators" folder in your "vendor" folder.
Link to nifty-generator GEM(version 0.3):
http://rubyforge.org/frs/?group_id=6986
I wasn't able to install local gem from github, but above link works.
It works with Rails 2.

XCode - Ruby on Rails Project Templates

Where can I find project templates for Ruby on Rails to use within projects?
I am using Xcode version 3.2.2.
From what I understand, Apple stopped shipping all project templates with xcode and made them available as optional downloads, yet I cannot find the templates for Ruby on Rails anywhere.
Regards
Mick
Because the "template" of a fresh rails app can change from version to version, you should use the rails new myapp generator command at the Terminal, and the open the result in XCode organizer.
More here: http://developer.apple.com/tools/developonrailsleopard.html

Resources