How to import Rails application folder in Aptana Studios - ruby-on-rails

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.

Related

Integrate tailwind theme in rails 7 tailwind app

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

Which SDK for Importing existing Grails project to IntelliJ IDE?

I have created a new grails project which named is helloworld by console. And now, I want to import this project to IntelliJ IDE. At the one of steps, need to choose a project SDK.
Which one should I choose?
Use the Java JDK ("JDK" in the pictured list).

Renaming Grails Project in Netbeans

I have a project that I would like to rename (I'm using Netbeans) and I can't find an option to do so. With a Java project it was as simple as right click project -> rename.
Is there a way to rename a Grails project? (Without causing issues with the classes therein)
This has moved to the project.xml file in the most recent versions of NetBeans (I'm running 7.1).
open [project directory]/nbproject/project.xml
change the <name> to reflect the new name of the project:
<name>[new project name]</name>
(1) Close any applications which may be using the app (Netbeans, Grails run-app, etc..)
(2) Update your application.properties file to have your new application name.
app.name=youroldappname
(3) Rename the base directory where your project is to yournewappname.

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