
| View previous topic :: View next topic |
| Author |
Message |
ckutler
Joined: 04 Jul 2008 Posts: 2
|
Posted: Mon Aug 04, 2008 10:25 pm Post subject: Do you ever run from a view or from the controller |
|
|
Hi,
You can right-click in a view file and choose Run File to run that file in the browser. You can also right-click in an action in a controller and choose Run File file to run the view for the action.
Do you use this feature?
I am finding that with restful routes (the default from Rails 2.0 on) this is mostly not working (it works for the new view). The browser opens with an error and I have to rewrite the url, such as from http://localhost:3000/posts/edit to http://localhost:3000/posts/1/edit.
So, I am wondering if people use this, and, if they do, under what circumstances this works from the IDE without having to edit the URL (I know it works for "new"). Does it work ok if you are not using restful routes? Or do you have to do some URL re-writing under some circumstances even with non-restful routes?
If you were to write about using this feature, what would you say? _________________ Chris Kutler
Technical Writer
NetBeans Support for Ruby |
|
| Back to top |
|
 |
Anthony Richardson Posted via mailing list.
|
Posted: Mon Aug 04, 2008 10:38 pm Post subject: Do you ever run from a view or from the controller |
|
|
On Tue, Aug 5, 2008 at 7:55 AM, ckutler <chris.kutler@sun.com> wrote:
| Quote: | You can right-click in a view file and choose Run File to run that file in the browser. You can also right-click in an action in a controller and choose Run File file to run the view for the action.
Do you use this feature?
|
Hi Chris,
As a user I can say I have never used that feature. I tend to start
the debugger up in the background and just leave it running all day as
I develop.
I can see from you description the problems with trying to access
URL's that need dynamic content in the URL from the IDE.
There are all sorts of "smarts" the IDE could try to use to improve
the situation, but I'm not sure if it is worth the effort. The routes
can be introspected to see what (if any) dynamic content they require,
as per the "routes" rake task.
Perhaps the IDE could use simple name association and if the action
name matches one of the default RESTful names assume the URL format of
that Rest Action and inject a default index value or prompt for the
record, or just load the index action if some sort of dynamic content
is required in the URL.
Cheers,
Anthony Richardson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
Tim Haines Posted via mailing list.
|
Posted: Mon Aug 04, 2008 10:50 pm Post subject: Do you ever run from a view or from the controller |
|
|
Never used it, and now I know about it, I'm not likely too.
On Tue, Aug 5, 2008 at 10:25 AM, ckutler <chris.kutler@sun.com (chris.kutler@sun.com)> wrote:
| Quote: |
Hi,
You can right-click in a view file and choose Run File to run that file in the browser. You can also right-click in an action in a controller and choose Run File file to run the view for the action.
Do you use this feature?
I am finding that with restful routes (the default from Rails 2.0 on) this is mostly not working (it works for the new view). The browser opens with an error and I have to rewrite the url, such as from http://localhost:3000/posts/edit to http://localhost:3000/posts/1/edit.
So, I am wondering if people use this, and, if they do, under what circumstances this works from the IDE without having to edit the URL (I know it works for "new"). Does it work ok if you are not using restful routes? Or do you have to do some URL re-writing under some circumstances even with non-restful routes?
If you were to write about using this feature, what would you say?
------------------------
Chris Kutler
Technical Writer
NetBeans Support for Ruby
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org (users-unsubscribe@ruby.netbeans.org)
For additional commands, e-mail: users-help@ruby.netbeans.org (users-help@ruby.netbeans.org)
|
|
|
| Back to top |
|
 |
Tor Norbye Posted via mailing list.
|
Posted: Wed Aug 20, 2008 6:58 pm Post subject: Do you ever run from a view or from the controller |
|
|
Hi Chris and others,
Sorry about the delay - I've been on a long vacation.
On Aug 4, 2008, at 3:38 PM, Anthony Richardson wrote:
| Quote: | On Tue, Aug 5, 2008 at 7:55 AM, ckutler <chris.kutler@sun.com> wrote:
| Quote: | You can right-click in a view file and choose Run File to run that
file in the browser. You can also right-click in an action in a
controller and choose Run File file to run the view for the action.
Do you use this feature?
|
|
I didn't realize this was broken. I guess it must have broken in the
Rails 1>2 conversion. Can you file an issue (ruby/projects) ? It
looks like the algorithm which computes an automatic URL for the
browser from the controller will need to be enhanced; the old
algorithm predicted what the default routes setup would do. It sounds
like we need to make it a bit smarter now.
-- Tor
| Quote: |
Hi Chris,
As a user I can say I have never used that feature. I tend to start
the debugger up in the background and just leave it running all day as
I develop.
I can see from you description the problems with trying to access
URL's that need dynamic content in the URL from the IDE.
There are all sorts of "smarts" the IDE could try to use to improve
the situation, but I'm not sure if it is worth the effort. The routes
can be introspected to see what (if any) dynamic content they require,
as per the "routes" rake task.
Perhaps the IDE could use simple name association and if the action
name matches one of the default RESTful names assume the URL format of
that Rest Action and inject a default index value or prompt for the
record, or just load the index action if some sort of dynamic content
is required in the URL.
Cheers,
Anthony Richardson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Thu Aug 21, 2008 3:30 pm Post subject: Do you ever run from a view or from the controller |
|
|
Thanks Tor. Bug is http://www.netbeans.org/issues/show_bug.cgi?id=144732
Tor Norbye wrote:
| Quote: | Hi Chris and others,
Sorry about the delay - I've been on a long vacation.
On Aug 4, 2008, at 3:38 PM, Anthony Richardson wrote:
| Quote: | On Tue, Aug 5, 2008 at 7:55 AM, ckutler <chris.kutler@sun.com> wrote:
| Quote: | You can right-click in a view file and choose Run File to run that
file in the browser. You can also right-click in an action in a
controller and choose Run File file to run the view for the action.
Do you use this feature?
|
|
I didn't realize this was broken. I guess it must have broken in the
Rails 1>2 conversion. Can you file an issue (ruby/projects) ? It
looks like the algorithm which computes an automatic URL for the
browser from the controller will need to be enhanced; the old
algorithm predicted what the default routes setup would do. It sounds
like we need to make it a bit smarter now.
-- Tor
| Quote: |
Hi Chris,
As a user I can say I have never used that feature. I tend to start
the debugger up in the background and just leave it running all day as
I develop.
I can see from you description the problems with trying to access
URL's that need dynamic content in the URL from the IDE.
There are all sorts of "smarts" the IDE could try to use to improve
the situation, but I'm not sure if it is worth the effort. The routes
can be introspected to see what (if any) dynamic content they require,
as per the "routes" rake task.
Perhaps the IDE could use simple name association and if the action
name matches one of the default RESTful names assume the URL format of
that Rest Action and inject a default index value or prompt for the
record, or just load the index action if some sort of dynamic content
is required in the URL.
Cheers,
Anthony Richardson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Sat Aug 30, 2008 1:34 am Post subject: Do you ever run from a view or from the controller |
|
|
Anthony or anyone else who develops this way....
Anthony wrote
| Quote: |
As a user I can say I have never used that feature. I tend to start
the debugger up in the background and just leave it running all day as
I develop.
|
Do you do this from the IDE. That is, do you click Debug Project and
leave it running all day, or do you do this outside of the IDE.
Do you type in the URLs to get to specific pages that you want to run,
or what do you do?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
Anthony Richardson Posted via mailing list.
|
Posted: Sat Aug 30, 2008 6:24 am Post subject: Do you ever run from a view or from the controller |
|
|
On Sat, Aug 30, 2008 at 11:04 AM, Chris Kutler <Chris.Kutler@sun.com> wrote:
| Quote: | | Quote: | As a user I can say I have never used that feature. I tend to start
the debugger up in the background and just leave it running all day as
I develop.
|
Do you do this from the IDE. That is, do you click Debug Project and leave
it running all day, or do you do this outside of the IDE.
|
In the IDE
| Quote: | Do you type in the URLs to get to specific pages that you want to run, or
what do you do?
|
Either type in the url or use the navigation in the application.
Generally the URL you want is in the browser after navigating and you
can just use refresh or backwards/forward navigation to get to the
specific page you are working on.
Cheers,
Anthony Richardson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|