This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Ability to pass parameters to a Rails server | ||
---|---|---|---|
Product: | ruby | Reporter: | digitalbias <digitalbias> |
Component: | Rails | Assignee: | Erno Mononen <emononen> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | UI |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Run properties for a project |
Description
digitalbias
2007-06-16 06:44:10 UTC
if you want to pass some arguments to interpreter, go to ruby project properties, to "Run" panel, and there you can set interpreter params, and save them as run configuration. is that what you are looking for? on the command line I can say something like this: 'scripts/server -e test' but I don't see a way to do this using the project 'run' dialog. I'm running version 070615 of the rubyide. The only things I see in the run dialog are "Server port number" and "Encoding". It could be I'm looking in the wrong location. I can get to the 'Run' options in a couple ways. 1. Selecting the menu 'Build', 'Set Main Project COnfiguration', 'Customize...' 2. Right clicking on the project in the 'Projects' pane, then selecting 'Properties' 3. Selecting the drop down in the menu bar and selecting 'Customize...' I'm going to attach a screen shot as well, just for clarity. Created attachment 43901 [details]
Run properties for a project
ah, then it's definitely valid, you're looking to correct location. I was talking about ruby project (and there you can pass params the way i described), but you are talking about ruby on rails project type. Reassigning this issue to newly created 'ruby' component. Agreed. I wonder if we want to support arbitrary arguments, or make a simple combo box to make it easy to choose between development, test and production modes. I would make it more generic with the ability for arbitrary arguments to the program as well as the ruby interpreter. Or we can do combination of both. But we can't do this into 6.0, we are after feature(and UI) freeze. This is kind of both. Erno this is similar to few other bugs you have. Trying to reassign ;) Should not be hard to fix. *** Issue 110655 has been marked as a duplicate of this issue. *** So you think that we should have an editable combo box with predefined 'test', 'development' and 'production' values? I think that would be a good approach since people can define their own environments Fixed, please give it a try. You can get a continuous build from http://deadlock.netbeans.org/hudson/job/trunk/ , the fix should be included in a few hours. Changesets: 0ada2e520c50 9de40b3abb42 I tried to test it, however the build I downloaded, netbeans-hudson-trunk-325-ruby, crashed the three times I tried to open an existing ruby project. I'll have to try again later. I've seen it now. Works for me. |