Re: [Rails] Re: Rails error while trying to delete: "No route matches [GET]"

2015-06-16 Thread Walter Lee Davis
Try adding those to your application.js file instead. Then they'll be 
concatenated and minimized by Sprockets for faster service. 

Walter

> On Jun 16, 2015, at 10:37 AM, Arthur Flores Duarte  
> wrote:
> 
> Hello everyone,
> 
> Thanks a lot for your help.
> I finally found what was the problem, the jquery wasn't working. I checked 
> the HTML code, everything was correct, but in the time of the event the 
> jquery wasn't working,
> 
> The solution is in this post: 
> https://stackoverflow.com/questions/4227775/rails-form-for-remote-true-is-not-calling-js-method
> 
> In the file "\app\views\layouts\application.html.erb", inside the  tag 
> I just included this line:
> <%= javascript_include_tag :jquery, :jquery_ujs %>
> 
> So, now the application recognizes the Delete method, and it also solve 
> another issue that I was having. The ajax commands using the command "remote: 
> true" wasn't working, it was calling an html request instead of a JS request, 
> so everything working good now. 
> 
> Thanks a lot for your help. 
> 
> Arthur Duarte
> 
> Em terça-feira, 16 de junho de 2015 07:51:37 UTC-3, Saravanan B escreveu:
>> 
>> Try this please it will work
>> <%= link_to "Destroy", {:controller => "comment", :action => "destroy", :id 
>> => comment.id }%>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/e7435f94-ab73-4bc9-9906-0b3b2fc0f601%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/BFB11A97-962B-4694-A733-F1B6B8E4F1CC%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: Rails error while trying to delete: "No route matches [GET]"

2015-06-16 Thread Arthur Flores Duarte
Hello everyone,

Thanks a lot for your help.
I finally found what was the problem, the jquery wasn't working. I checked 
the HTML code, everything was correct, but in the time of the event the 
jquery wasn't working,

The solution is in this post: 
https://stackoverflow.com/questions/4227775/rails-form-for-remote-true-is-not-calling-js-method

In the file "\app\views\layouts\application.html.erb", inside the  
tag I just included this line:
<%= javascript_include_tag :jquery, :jquery_ujs %>

So, now the application recognizes the Delete method, and it also solve 
another issue that I was having. The ajax commands using the command "remote: 
true" wasn't working, it was calling an html request instead of a JS 
request, so everything working good now. 

Thanks a lot for your help. 

Arthur Duarte

Em terça-feira, 16 de junho de 2015 07:51:37 UTC-3, Saravanan B escreveu:
>
> Try this please it will work
> *<%= link_to "Destroy", {:controller => "comment", :action => "destroy", 
> :id => comment.id  }%>*
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/e7435f94-ab73-4bc9-9906-0b3b2fc0f601%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: Rails error while trying to delete: "No route matches [GET]"

2015-06-16 Thread Saravanan B
Try this please it will work
*<%= link_to "Destroy", {:controller => "comment", :action => "destroy", 
:id => comment.id }%>*

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/502393b6-afa4-4f30-a029-4112d80e7d9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Rails error while trying to delete: "No route matches [GET]"

2015-06-16 Thread tamouse pontiki
Arthur,

It hasn't been all that long since I've used 3.2, but I *think* you're
using the wrong syntax. Please look at
http://apidock.com/rails/v3.2.8/ActionView/Helpers/UrlHelper/link_to that
shows the link_to method at that time.

Also, look at the html that is generated for the view and see if you can
tell what's happening.

I wish I could be of more help...

Tamara


On Mon, Jun 15, 2015 at 10:51 PM, Rafael Belo 
wrote:

> Post your route.rb plz.
>
>
>
> Em segunda-feira, 15 de junho de 2015 03:25:54 UTC-3, Arthur Flores Duarte
> escreveu:
>>
>> Hello,
>>
>> I am a newbie with Rails and I am having a problem with my study
>> application (Rails 3.2.6), when using Destroy links, I get the following
>> message:
>> Routing Error
>> No route matches [GET] "/comments/2"
>>
>> I can see that the Destroy link are calling a GET command instead of a
>> delete method.
>>
>> I've searched a lot about this problem, but couln't find the reason, hope
>> anyone can help me.
>>
>>
>> *_comment.html.erb:*
>>
>> *<%= comment.name  %> said:*
>> * <%= simple_format comment.body %>*
>> * Sent <%= time_ago_in_words comment.created_at %> ago*
>> * <%= link_to "Destroy", comment_path(comment), method: :delete , :data
>> => { :confirm => "Are you sure?"} %>*
>>
>>
>> *comments_controller.rb:*
>>
>> * class CommentsController < ApplicationController*
>> *  def create*
>> * @job = Job.find(params[:job_id])*
>> * @comment = @job.comments.build(params[:comment])*
>> * if @comment.save*
>> *  flash[:notice] = "Comment was created with success!"*
>> * else*
>> *  flash[:alert] = "Please fill in all fields to create a comment."*
>> * end*
>> * redirect_to @job*
>> *  end*
>>
>> *  def destroy*
>> * @comment = Comment.find(params[:id])*
>> * @comment.destroy*
>> * redirect_to @comment.job, notice: "Comment destroyed with success."*
>> *  end*
>> * end*
>>
>> *rake routes:*
>> *   root/jobs#premium*
>> *companies_login GET/companies/login(.:format)   login#new*
>> *   POST   /companies/login(.:format)   login#create*
>> * companies POST   /companies(.:format) companies#create*
>> *   new_company GET/companies/new(.:format) companies#new*
>> *  job_comments POST   /jobs/:job_id/comments(.:format) comments#create*
>> *  jobs GET/jobs(.:format)  jobs#index*
>> *   POST   /jobs(.:format)  jobs#create*
>> *   new_job GET/jobs/new(.:format)  jobs#new*
>> *  edit_job GET/jobs/:id/edit(.:format) jobs#edit*
>> *   job GET/jobs/:id(.:format)  jobs#show*
>> *   PUT/jobs/:id(.:format)  jobs#update*
>> *   DELETE /jobs/:id(.:format)  jobs#destroy*
>> *   comment DELETE /comments/:id(.:format)  comments#destroy*
>> *   hello_world GET/hello/world(.:format)   hello#world*
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/8bf2de99-6019-4f0f-998c-75bc845ece68%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t_6FKWgtuZwaPS3ALzs2kBT6CMj6EM7iciwPMtKqX%3D7ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: Rails error while trying to delete: "No route matches [GET]"

2015-06-15 Thread Rafael Belo
Post your route.rb plz.



Em segunda-feira, 15 de junho de 2015 03:25:54 UTC-3, Arthur Flores Duarte 
escreveu:
>
> Hello,
>
> I am a newbie with Rails and I am having a problem with my study 
> application (Rails 3.2.6), when using Destroy links, I get the following 
> message:
> Routing Error
> No route matches [GET] "/comments/2"
>
> I can see that the Destroy link are calling a GET command instead of a 
> delete method.
>
> I've searched a lot about this problem, but couln't find the reason, hope 
> anyone can help me. 
>
>
> *_comment.html.erb:*
>
> *<%= comment.name  %> said:*
> * <%= simple_format comment.body %>*
> * Sent <%= time_ago_in_words comment.created_at %> ago*
> * <%= link_to "Destroy", comment_path(comment), method: :delete , :data => 
> { :confirm => "Are you sure?"} %>*
>
>
> *comments_controller.rb:*
>
> * class CommentsController < ApplicationController*
> *  def create*
> * @job = Job.find(params[:job_id])*
> * @comment = @job.comments.build(params[:comment])*
> * if @comment.save*
> *  flash[:notice] = "Comment was created with success!"*
> * else*
> *  flash[:alert] = "Please fill in all fields to create a comment."*
> * end*
> * redirect_to @job*
> *  end*
>
> *  def destroy*
> * @comment = Comment.find(params[:id])*
> * @comment.destroy*
> * redirect_to @comment.job, notice: "Comment destroyed with success."*
> *  end*
> * end*
>
> *rake routes:*
> *   root/jobs#premium*
> *companies_login GET/companies/login(.:format)   login#new*
> *   POST   /companies/login(.:format)   login#create*
> * companies POST   /companies(.:format) companies#create*
> *   new_company GET/companies/new(.:format) companies#new*
> *  job_comments POST   /jobs/:job_id/comments(.:format) comments#create*
> *  jobs GET/jobs(.:format)  jobs#index*
> *   POST   /jobs(.:format)  jobs#create*
> *   new_job GET/jobs/new(.:format)  jobs#new*
> *  edit_job GET/jobs/:id/edit(.:format) jobs#edit*
> *   job GET/jobs/:id(.:format)  jobs#show*
> *   PUT/jobs/:id(.:format)  jobs#update*
> *   DELETE /jobs/:id(.:format)  jobs#destroy*
> *   comment DELETE /comments/:id(.:format)  comments#destroy*
> *   hello_world GET/hello/world(.:format)   hello#world*
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8bf2de99-6019-4f0f-998c-75bc845ece68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: Rails Error: Unable to access log file...

2010-02-21 Thread Gavin Morrice
Hey Kev!

You ever find the solution to this issue?

Im running three rails apps on my server, all on the same version of 
rails.

One of them runs fine, the other two kick up this error when I try to 
start them.

Any clues would be helpful?

Thanks

Gav

kev...@googlemail.com wrote:
> I cannot get rails/passenger to write to my production log :(
> 
> On my production server in the apache error_log I get:
> 
> --
> Rails Error: Unable to access log file. Please ensure that /my/app/
> log/
> production.log exists and is chmod 0666.
> --
> 
> Doing the following using copy/paste to avoid path/typo confusion:
> 
> --
> # ls -la
> drw-rw-rw-  2 apache apache 4096 Jul 30 11:41 .
> drwxrwxr-x 14 apache apache 4096 Jul 30 11:41 ..
> -rw-rw-rw- 1 apache apache 0 Jul 30 11:32 /my/app/log/production.log
> # cat /my/app/log/production.log
> #
> --
> 
> Passenger is set to run as user 'apache', as is apache/httpd itself.
> Relevant httpd.conf lines:
> 
> --
> PassengerDefaultUser apache
> PassengerUserSwitching off
> --
> 
> I also set the log level to 3 which didn't seem to add anything
> relevant to this problem to the error_log.
> 
> I'm running on CentOS 5 and SELinux is disabled:
> 
> --
> # sestatus
> SELinux status: disabled
> --
> 
> Looking at the processes, Passenger and Rails seem to be running as
> the correct user 'apache' as does httpd.
> 
> Can somoeone tell me where to look next please, I'm a bit lost now.
> 
> Cheers,
> 
> Kev

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Re: rails error

2010-02-18 Thread Gary Doades
Rails 1.1.6 that you seem to be using is not compatible with ruby 1.9 
which you also seem to be using.


If you are just starting out with rails you really ought to be using the 
latest version, not an ancient version.


Cheers,
Gary.

On 18/02/2010 7:28 PM, Spencer Spence wrote:

anyone?
   


--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: rails error

2010-02-18 Thread Spencer Spence
anyone?
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: rails error

2010-02-18 Thread Spencer Spence
bill walton wrote:
> Not sure, but it's possible that the project name might be causing the
> issue.  Can you create a rails project with another name ?
> 
> Best regards,
> Bill

No, I tried using myprojectname but it didnt work.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Rails error

2009-06-23 Thread Lloyd Linklater

Lloyd Linklater wrote:
> Frederick Cheung wrote:
>> On Jun 23, 2:51�pm, Lloyd Linklater 
>> wrote:
>>> It means that I cannot progress past page 68. What am I doing wrong?
>> is that backslash there in the command you are actually typing ?
>> 
>> Fred
> 
> There is in the book.

OMG!  You are right!  It seems that they have it in there as a line wrap 
and not a literal character.  What a gotcha THAT is!  Thanks!
-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails error

2009-06-23 Thread Lloyd Linklater

Frederick Cheung wrote:
> On Jun 23, 2:51�pm, Lloyd Linklater 
> wrote:
>> It means that I cannot progress past page 68. What am I doing wrong?
> is that backslash there in the command you are actually typing ?
> 
> Fred

There is in the book.
-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails error

2009-06-23 Thread Frederick Cheung



On Jun 23, 2:51 pm, Lloyd Linklater 
wrote:
> I am trying to learn rails from "Agile Web Development with Rails, 3rd
> Edition" and am having troubles.  I get an error when I try to run this
> command on pg 68:
>
> ruby script/generate scaffold product \ title:string description:text
> image_url:string
>
> after the “exists test/unit/” result in the dommand window, it says
> “wrong number of arguments (1 for 2)”
>
> It means that I cannot progress past page 68. What am I doing wrong?


is that backslash there in the command you are actually typing ?

Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Mk 27

Julian Leviston wrote:
> I thought you meant API.rubyonrails.org
> 
> Which server errors?

It was because of the link in the post (don't use <>?), I just tried the 
actual address and that looks good.  THANKS.

Also thanks Fred for the "guides"

 :
-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Julian Leviston

I thought you meant API.rubyonrails.org

Which server errors?


Blog: http://random8.zenunit.com/
Twitter: http://twitter.com/random8r
Learn: http://sensei.zenunit.com/
New video up now at http://sensei.zenunit.com/ real fastcgi rails  
deploy process! Check it out now!


On 20/05/2009, at 3:29 AM, Mk 27   
wrote:

>
> Julian Leviston wrote:
>
>> Re: the API, why can't you use your browsers search feature?
>> Everything is on the one page - in frames.
>
> That's totally wacked.  The API I am referring to involves quite a few
> seperate files in usr/local/lib/ruby/doc/.  There would be not much
> purpose to frames if they were not multiple pages.  Most html'ified  
> API
> documentation does not have a search function, I was just hoping for a
> bit more from ruby ;)
>
> Mostly my complaint would be that there does not seem to be anywhere
> describing the meaning of the server errors.
>
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Hassan Schroeder

On Tue, May 19, 2009 at 10:31 AM, Mk 27
 wrote:

>> Anyway, see: 

> This is a dead link.

? It works for me.

> I presume you mean the same thing that's at localhost:8808?

I do not.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Frederick Cheung


On 19 May 2009, at 18:31, Mk 27 wrote:

>
> Hassan Schroeder wrote:
>
>> Anyway, see: 
>>
>> --
>> Hassan Schroeder  hassan.schroe...@gmail.com
>
> This is a dead link.  I presume you mean the same thing that's at
> localhost:8808?

works for me.

The security guide http://guides.rubyonrails.org/ discusses csrf  
protection.

Fred
>
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Mk 27

Hassan Schroeder wrote:

> Anyway, see: 
> 
> --
> Hassan Schroeder  hassan.schroe...@gmail.com

This is a dead link.  I presume you mean the same thing that's at 
localhost:8808?
-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Mk 27

Julian Leviston wrote:

> Re: the API, why can't you use your browsers search feature?
> Everything is on the one page - in frames.

That's totally wacked.  The API I am referring to involves quite a few 
seperate files in usr/local/lib/ruby/doc/.  There would be not much 
purpose to frames if they were not multiple pages.  Most html'ified API 
documentation does not have a search function, I was just hoping for a 
bit more from ruby ;)

Mostly my complaint would be that there does not seem to be anywhere 
describing the meaning of the server errors.

-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Hassan Schroeder

On Tue, May 19, 2009 at 8:45 AM, Mk 27  wrote:

> Also very disappointed that a *web interface* API does not include a
> search function (!), meaning I had to use grep

"had to"? you meant "totally enjoyed the opportunity to", right? :-)

Anyway, see: 

-- 
Hassan Schroeder  hassan.schroe...@gmail.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Julian Leviston

On 20/05/2009, at 1:45 AM, Mk 27   
wrote:

>
> Mk 27 wrote:
>
>> I can't seem to find any reference anywhere to an explanation of what
>> these errors actually mean (perhaps it has to do with manually  
>> adding a
>> view?  The file just contains the words "Hello World"), altho there  
>> are
>> a few old posts about how to "turn it off".
>
> Well adding this to the controller worked:
>
> protect_from_forgery :only => [:create, :update, :destroy]
>
> Also very disappointed that a *web interface* API does not include a
> search function (!), meaning I had to use grep on the doc source --
> which is very awkwardly laid out from a "grep" perspective.
>
> I guess you can't ask for everything.
> -- 
> Posted via http://www.ruby-forum.com/.
>
> --~--~-~--~~~---~--~~
>

Re: the API, why can't you use your browsers search feature?  
Everything is on the one page - in frames.

Blog: http://random8.zenunit.com/
Twitter: http://twitter.com/random8r
Learn: http://sensei.zenunit.com/
New video up now at http://sensei.zenunit.com/ real fastcgi rails  
deploy process! Check it out now

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error explained?

2009-05-19 Thread Mk 27

Mk 27 wrote:

> I can't seem to find any reference anywhere to an explanation of what
> these errors actually mean (perhaps it has to do with manually adding a
> view?  The file just contains the words "Hello World"), altho there are
> a few old posts about how to "turn it off".

Well adding this to the controller worked:

protect_from_forgery :only => [:create, :update, :destroy]

Also very disappointed that a *web interface* API does not include a 
search function (!), meaning I had to use grep on the doc source -- 
which is very awkwardly laid out from a "grep" perspective.

I guess you can't ask for everything.
-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Error

2009-04-15 Thread Frederick Cheung



On Apr 15, 4:55 am, fadil  wrote:
> I'm totally new with ruby on rails
> My machine running ubuntu 8.10 and i have installed ruby 1.8.7,
> rubygems 1.3.1 and rails 2.3.2, sqlite3, postfix adn subversion.
> The problem is when i want to create a simple blog application this
> error came out.

That stack trace looks you are using ruby 1.9.0 which you almost
certainly don't want to use (1.9.0 was the development version of what
was eventually released as ruby 1.9.1)

Fred
> fa...@fadil-laptop:~$ sudo rails blog
> /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/
> core_ext/uri.rb:8:in `': uninitialized constant
> URI::Parser (NameError)
>         from /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/
> core_ext.rb:3:in `require'
>         from /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/
> core_ext.rb:3:in `block in '
>         from /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/
> core_ext.rb:1:in `each'
>         from /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/
> core_ext.rb:1:in `'
>         from /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/
> active_support.rb:55:in `require'
>         from /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/
> active_support.rb:55:in `'
>         from /var/lib/gems/1.9.0/gems/rails-2.3.2/lib/rails_generator.rb:
> 28:in `require'
>         from /var/lib/gems/1.9.0/gems/rails-2.3.2/lib/rails_generator.rb:
> 28:in `'
>         from /var/lib/gems/1.9.0/gems/rails-2.3.2/bin/rails:14:in `require'
>         from /var/lib/gems/1.9.0/gems/rails-2.3.2/bin/rails:14:in ` (required)>'
>         from /usr/bin/rails:19:in `load'
>         from /usr/bin/rails:19:in `'
> fa...@fadil-laptop:~$
> Help me please.
> Regards.
> Fadil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---