# I cant' use Netbenas to develop ruby

**URL:** <https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439>\
**Category:** Rails\
**Created:** [September 23, 2010, 9:44am UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439 "2010-09-23T09:44:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 23, 2010, 9:44am UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439/1 "2010-09-23T09:44:23Z")

</div>

I try to develop ruby with netbeans and mysql.I try to generate  
controller XXX and views YYY and I try access my tested web.But it shows  
me  
We’re sorry, but something went wrong.  
We’ve been notified about this issue and we’ll take a look at it shortly

```
              What's wrong. I used WEbrick as server

                                                  Thanks
```

---

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 23, 2010, 10:03am UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439/2 "2010-09-23T10:03:50Z")

</div>

On 23 September 2010 08:44, Tanawat L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I try to develop ruby with netbeans and mysql.I try to generate  
> controller XXX and views YYY and I try access my tested web.But it shows  
> me  
> We’re sorry, but something went wrong.  
> We’ve been notified about this issue and we’ll take a look at it shortly

Have a look in log/development.log for more information (assuming you  
are running in development mode). Possibly you have not setup the  
database connection in config/database.yml.

Colin

---

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 23, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439/3 "2010-09-23T14:43:07Z")

</div>

Try to set config.action\_controller.consider\_all\_requests\_local = true  
for your development environment  
It will show proper Exeption message instead of "We’re sorry, but  
something went wrong

---

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 23, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439/4 "2010-09-23T14:43:07Z")

</div>

Try to set config.action\_controller.consider\_all\_requests\_local = true  
for your development environment  
It will show proper Exeption message instead of “We’re sorry, but  
something went wrong.”

---

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 24, 2010, 4:53pm UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439/5 "2010-09-24T16:53:10Z")

</div>

This problem should have nothing to do with Netbeans. I have been  
using Netbeans for a long time and still get that error sometimes.  
It’s always my fault, not Netbeans’s. 😉

It might be that your DB configuration is not setup correctly or that  
you have a typo in your URL, or…

I would check first the ‘database.yml’ file contents and go from  
there.

---

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 23, 2010, 11:57pm UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439/6 "2010-09-23T23:57:36Z")

</div>

I stay on the command line for the generators and such, using Netbeans  
to do the other programming tasks.

---

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 25, 2010, 6:27pm UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439/7 "2010-09-25T18:27:38Z")

</div>

Tanawat L. wrote:

> I try to develop ruby with netbeans and mysql.I try to generate  
> controller XXX and views YYY and I try access my tested web.But it shows  
> me  
> We’re sorry, but something went wrong.  
> We’ve been notified about this issue and we’ll take a look at it shortly
> 
> ```
> What's wrong. I used WEbrick as server
> 
> Thanks
> 
> ```

I had this problem what I found is that the Webrick server port snd the  
localhost prot were pointing in different places. The Webrick sever  
should be by default [http://localhost:3000](http://localhost:3000) and for Apache  
[http://locahost:8080](http://locahost:8080). however this can change if Netbeans detects the  
port is being used. Couple options choose Server. see if  
Webrick is present. If it is remove an reinstall. Or go into you project  
properties and make sure the Server you are running on and the port  
number in your URL match.

---

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 27, 2010, 9:14am UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439/8 "2010-09-27T09:14:20Z")

</div>

I think you have to install mysql2 gem. then this should be work.
