I have a IntelliJ Idea 11 with Ruby Plugin installed. Im trying to configure a project but the IDE doesn't recognize my views as a module. It just adds other folders (controllers, db, config)
Am I doing something wrong?
Thanks
Create a new project using a wizard for the root of your rails application (from scratch, Ruby module, add Ruby on Rails facet, Use existing Rails application):
Related
I want to create a Rail project named Pierre with Aptana Studio 3 but it's written :
Pierre#PC-Pierre ~
$ rails new .
Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.
Type 'rails' for help.
I have joined a screenshot of the repository where I created my project. Could someone help me to deal with that ?
Seems like the issue you are describing comes from Aptana and not Rails. Create the App from cmd and then import it into Aptana like so: https://superuser.com/questions/324183/how-can-i-import-an-existing-project-in-aptana-without-moving-the-files
Im trying to create a Grails application (Grails 3.2.9), combined with a JS client based on VueJS 2.x and webpack.
I know there is a Webpack profile in grails, but nothing about Vuejs. Is there any documentation somewhere, any guide or sample project I could look into?
I have been able to generate a Grails app with webpack using Grails, another app with Grails and VueJS (VueJS integrated inside Grails' GSP), and a third app with webpack and VueJs (using vue-loader), but never managed to create an app with the three of them.
There is a grails guide you can follow to create custom gradle task and execute those as you need. Anyway I've created a grails 3-vuejs 2 starter project from that guide. Git repo link: https://github.com/mamunsrdr/bootvue.git.
Please follow the readme.
Edit: just a few days ago grails released new way of doing this, called application forge just like spring boot. You can follow this link. There you can pick one of many profiles, webpack is one of them.
I was trying to debug a rails application(4.03) using rubymine IDE version 7.0.2, but when I configure my application like this
The IDE complained that Rails Server launcher wasn't found in the project.
Please tell me what can I do fix the issue, and could you please recommend other ways of debugging a rails application.
Please note that this bug is easily replicated using Ruby Mine by following these steps.
Create a new rails projects with Ruby Mine, for example DebuggingRails. Which will generate default folders and files. At this point one can debug the application normally.
Create a new folder let's say Server.
Copy all the generated files above to the Server folder, so the project structure will be
DebuggingRails\Server.
Create a debugging configuration , which points to the DebuggingRails\Server.
Try to debug the application using the IDE.
The message "Rails server launcher wasn't found in project" appears
Thanks.
Close your project, remove the .idea folder, and open it back up again.
I had this problem because i chose the wrong folder, you must choose the root folder in the rails project. For example i had this structure
-MyProject
---RoR
-----app
-----bin
-----condig
-----etc
Then I chose the folder call
MyProject
It was wrong.
The correct is choose the folder
RoR
I am currently having unnecessary trouble trying to test out RubyMine. My biggest problem is that I cannot find a way to take a existing rails application on my system and convert it to an official RubyMine application, so that I can experience all of the features of RubyMine.
The only options that are available to me are to either create a new RubyMine rails project, to pull a rails project from a git remote (doesn't work), or to open a previous rails directory (which allows you to edit rails code, but it doesn't recognize this directory as a RubyMine project, so I cannot heap all of the benefits that RubyMine has for rails).
Please help me out, RubyMine seems promising
This is RubyMine 4 btw.
File | Open Directory should create a new RubyMine project from the existing sources. I've just tried with a new Rails app and it recognized it as a Rails project and all the features work just like for the new project created from RubyMine.
I'm using NetBeans and I'm trying to create a new Rails project trought the wizard, so while I click the finish button, it creates the folder structure but the wizard never finish working and doesn't show nothing on the Projects view.
It just happens when I set up a Sqlite3 DB.
I'm using Rails 3.0.7
Can someone help me?
I have always struggled to create Rails projects using the internal netbeans wizard. Usually I find it easier to create the rails app from the command line:
rails your_app_name
This will create a new folder your_app_name in your current location, and then I create a new project within Netbeans by selecting the 'Ruby on Rails Application with Existing sources' option. And select the freshly created your_app_name folder for the Project folder.
I have found Netbeans to be less reliable with rails 3+ applications than the 2+ and find that run most rails commands directly from the terminal/command prompt.
do you have sqlite3 installed? Anyways people will be able to help you if you can post the netbeans log. Go to the command line and run netbeans from the command line. Then you can see a lot of output/logging info.