Displaying 20 results from an estimated 500 matches similar to: "How to handle errors - HELP"
2006 Mar 17
2
Security issue dealing with comment posting - anyone?
This is how I''m posting comments currently. This works, but I read
somewhere that I shouldn''t inject params right into my sql query,
because it makes it easy for people to hack in and ruin the db. I''m not
sure if this even makes sense, but I''ve tried other things, and can''t
get anything else to work.
#currently
def comments
content =
2006 Mar 17
0
Returning from Ajax call - "redirect_to error"
I have Ajax commenting on my site, well, I''m trying to get it working.
It worked fine locally, but when I posted to the server, I''m getting an
"Application Error (Rails)", and I checked the logs, and it has:
(stack trace too deep)
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:447:in
`url_for''
2006 Jul 21
3
Interface with Flickr
Does anyone know how to get going with the flickr api WITHOUT using the
''flickr.rb'' gem? I''m wanting to just use the REXML and ''net/http''
stuff. I''m just wondering how to send requests to the api and handle
the response. Any tips would be great!
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 May 08
4
<%= text_field %> - how to set the value to session name?
I''m trying to automatically fill a "posted_by" text by with whoever is
logged into the session. How do you set the value attribute using "<%=
text_field ... %>"???
I''ve tried:
<%= text_field ''post'', ''posted_by'', ''value'' =>
User.find(session[:user_id]).name.capitalize) %>
But I get
2006 Mar 14
5
Dreamhost Database problems
I''m working on uploading my site to dreamhost. I just setup my
production database, and gave it a host name. It said that it was
successfully created. Now, it''s been like 25 minutes, and I still can''t
connect to it. Is that normal?
How can I get my tables created? Just wait it out? I''m trying to load
it in the browser, and it says "server not
2006 Mar 29
7
Dreamhost upgraded 1.1 - app doesn''t work
Does anyone know how long it will be until Dreamhost get''s the Rails 1.1
install running correctly?
My site has been down since last night at about 7:00 pm (I think).
It''s annoying, and are a lot of others having this problem too?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 May 06
1
Ajax commenting - PLEASE HELP!!!!
I''m trying to post comments using Ajax. It seems that I have an
infinite loop somewhere, because it hangs on the return from the Ajax
call. The comment does get saved to the DB, but I have to refresh the
page for it to show.
The reason I know it''s some sort of infinite loop, is because I''m
showing a "loading.gif" image, and it never goes away. Plus, if
2006 Mar 05
2
Sending an email when a comment is posted
When a user posts a comment on my site, is there a way for me to be
notified via email? I know this is pretty easy in php, i.e. mail()
function, but I''m looking for the equivalent in Rails.
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 05
2
RSS feed for blog entries...
Can someone guide me on the process of providing an RSS feed for my
site? I''m not sure how to go about this. Thanks.
--
Posted via http://www.ruby-forum.com/.
2008 Jul 09
2
build matrix with the content of one column of a data frame in function of two factors
Hello,
First, thanks for your help (and sorry for my english !)
I have a data frame in which each row represents a vote (in percent, only
20,40, 60,80,100) of one person on one content, with three columns : name
(the name of the voters), content_id, vote :
str(votesredac)
'data.frame': 1000 obs. of 3 variables:
$ name : chr "Guillemette Faure" "Guillemette
2006 Mar 13
5
Displaying related entries by tags - HELP!
Ok, my site is setup like pretty much every other blog out there. A
list of the most recent 5 posts, then by clicking one, you go to an
individual post page, displaying the full context of that post.
Now, what I would like to do is to display the related entries in the
side column, which is part of the layout, based on the tags belonging to
that specific entry.
Here''s my coding so
2006 May 11
1
Including dynamic list of params in link_to
How do I include all incoming URL parameters (i.e.
list_content.rhtml?content_id=23) in my link_to statements?
I know I can include specific parameters in the link_to, by using
":variable_name => 123" in the link_to statement... But what If I
dont'' know what the incoming parameters will be... and I simply want to
include them along with any other specific variables I
2006 Mar 14
7
Application error (Rails)
After I attempted to add ActionMailer functionality, it gave the
"Application error (Rails)" and now, everything on my site works, except
for the part where the Actionmailer ''would have'' sent the email.
I took that out now, re-uploaded the file, and ran "killall -USR1
dispatch.fcgi" and still nothing. Everything else works, except that.
Any idea what
2006 Apr 03
2
Order By Number of Comments
Hi,
I am new to Ruby on Rails, so I apologise if this has been answered
elsewhere. I have had a look through the list but I can''t seem to find
what I am trying to do.
I have implemented the standard blog and comments app from the
screencast. However I am trying to extend the functionality.
I want to be able to display a list of posts and order them by the total
number of comments
2006 Mar 04
2
Current date/time - how to store with comments?
Can someone tell me how to store the current date/time when someone
posts a comment on my blog? I could even update the comments table
after the comment is saved in the controller, but I''m not sure how to do
that either.
Thanks for any help...
--
Posted via http://www.ruby-forum.com/.
2006 Mar 04
4
How to redirect_to the same page after comment posting?
How can I have the page redirect_to the same page after someone posts a
comment?
I know that you can do "redirect_to :action => ''index''", but the page is
located at this URL:
/posts/2006/02/01/individual_post/
So, the action is "individual" which is in the "posts" controller, but
there is a custom URL mapped for the URL shown above. How can
2006 Mar 09
1
RSS testing on localhost?
If I were to figure out how to develop an RSS feed for my blog, I should
be able to test that locally right? If I go to
http://mydomain.com/posts/feed/, what should I see? The XML output?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 13
2
Dreamhost uploading
I haven''t had a chance to upload my app and configure dreamhost, but I
did log in and create the folder using the "rails app_name" command.
Now, my question is, I read online to do this:
> cd domain.com
> rails my_app_name
So, I did just that. Rails will know what to do even though my
application is in a sub-directory under "domain.com"?
Essentially,
2011 Aug 20
0
undefined method `comment_count' for YouTubeG
`eval'': undefined method `comment_count'' for
#<YouTubeG::Model::Video:0xcdd2668> (NoMethodError)
http://youtube-g.rubyforge.org/
in response object i checked i am not getting comment_count
I am also using view_count and it is coming in response. previously i
was getting comment_count but now getting error.
i am using Rails 3 and Ruby 1.9.2
gem version
youtube (0.8.6)
2006 Aug 15
4
Cookies and Ruby???
When someone comments on my site, I would like to store the user''s name
as a cookie, and display it the next time they return. I really don''t
know how to do this. Does this use the cgi library? As most things
with ruby, I would imagine it to be quite simple... could anyone post a
code snippet as to how this would work??? Thanks...
--
Posted via