Displaying 20 results from an estimated 2000 matches similar to: "Ajax commenting - PLEASE 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 Mar 17
1
How to handle errors - HELP
I''m having trouble with my Ajax comments, but only when someone clicks
the submit button when there''s no comment. How can I handle this in my
code?
Do I use "rescue nil" or something?
Here''s my controller:
def comments
content = Content.find(params[:id])
@comment = Comment.new(params[:comment])
content.comments << @comment
2006 Jun 23
3
Ajax errors in safari
I am implementing some AJAX features into a web forum, and one feature
works fine in Firefox and in IE, but it is choking in Safari. Safari
will send the request fine and the data will be stored in the DB, but
it is not responding correctly to the RJS that is being sent back.
Anybody notice issues with Safari parsing the javascript sent back to
the browser?
--
Timothy Johnson
2006 Apr 25
5
to ajax or not to ajax
before I started building my latest rails app, I made the decision to make
good use of ajax. My reasonsing was that users would benefit from the
quicker page updates - the application provides various different types of
insurance quotes, and has several multi-page forms and reports that can be
drilled down 5 or 6 levels deep in some cases - so it seemed like a good
candidate for ajax
Now
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)
2012 May 24
3
rails ajax issues
Hi
* *I think this is my 4 or 5th post about the ajax issues with my rails
code. But i couldn''t rectify my issues sofar.
problem is,
In my pages.html.erb have one text field and button. when i click on that
button, the text field value will get into the controller through ajax,so
after the function i need to get that value(textfield value) in same
page.
*page.html.erb*
2012 Jan 24
2
How would you do this in ajax in rails 3
I have a rails 3.1 app and I am curious how you would do something.
I have a link_to remote option true button
<%=link_to "Add to your Favorites",
add_favorite_url(movie_star),:class=>"btn small primary" %>
I need to submit this to the users controller via ajax do some stuff
then set the button to say
that the favorite has been added.
Can you please tell me how
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
Thank you in advance.
Although I have many years of experience in general, including cross-
platform processing, I am not an HTML/Javascript programmer. As a
result, I do not have certain specific baseline skills and/or knowledge
that are presumed in the Rails and Ajax documentation.
I am experienced with DOM manipulations, so the bare mechanics of
manipulating the browser GUI via Javascript
2005 Oct 16
1
prototype help needed - how to get started
Hello,
Despite Sergio''s excellent documentation on prototype, I’m still struggling
to get started. I hope somebody is able to help me a with a little example
to get me going.
Please see html code below – I have this little navigation bar and I like to
add some events/functions to the buttons.
Let’s say, onmouseover, I like to change e.g. the background-color of the
button and
2012 Nov 01
2
SyntaxError in Posts#index
getting this error
compile error
/Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:5: syntax error, unexpected ''=''
...w Goal", new_post_path, class="btn btn-success" );@output_bu...
^
/Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:7: syntax error, unexpected kDO_BLOCK, expecting kEND
''); @posts.each
2007 Feb 14
5
FormTestHelper should change hidden fields
Railsoids:
FormTestHelper rules. It tests your response.body form at the same
time as it triggers your action, with all the parameters in that form.
This obviously improves quality.
But it took issue with this:
submit_form ''validate_stuff'' do |form|
form[''IBhidden''] = ''validate''
end
The field IBhidden is a hidden field. To be
2007 Feb 27
1
Billing Telephone Number (BTN)
I have Asterisk setup with two PRI's one going to my telco and the
other going to a Norstar Meridian system. The Norstar Meridian is
sending a BTN number that needs to be passed to the Telco. Is there a
way to pass the BTN as a variable in the dial plan? Like
CallerID(num)? What is the variable for BTN if so?
Many Thanks.
--
***
Forrest Beck
IAXTEL: 17002871718
jonforrest.beck@gmail.com
2006 Jan 11
0
RE: Event.observer - unordered list problems
Hi Marco (I forwarded this also to the mailing list and removed the
picture as it wasn''t necessary to include to the mailing list so
everyone can hear the general techniques),
I recently had a very similar problem with my project. The problem
arises because whenever you move the mouse to ANY element, the previous
element that the mouse was over gets a mouseout event, even if it
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
I just realized I made a mistake... in the first numbered solution, the
!= should be ==
________________________________
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan
Gahl
Sent: Wednesday, January 11, 2006 2:28 PM
To:
2006 May 30
0
problem with effect toggle - please help
Hello,
I''m having the following code below - when I click on the button in order to
toggle a div, it is working when the div is visible - after it is toggled
once, the beforeStart stuff isn''t executed anymore!
interestingly, when I change this Effect.toggle(this.bContentWrap, ''blind'',
{
to this: Effect.toggle(this.bContentWrap, ''slide'',
2006 Apr 17
3
Please help : how to link_to() and css styles ?
Hello, I''m having hard times on a very simple problem : how to provide a
css class to a link_to tag ?
I''m using this :
<%= link_to ''Cancel'', :action => ''list'', :class => ''btn-cancel'' %>
and RoR produces this :
<a href="/gallery/list?class=btn-cancel">Cancel</a>
I''ve read the doc
2009 Sep 24
4
Action Controller ::MethodNotAllowed
Hi,
Iam getting the following error
ActionController::MethodNotAllowed
Only get, put and delete requests are allowed.
Actually, Iam trying to have multiple actions for a form to create
new record. The actions for the form are cancel, save, publish and
preview.
here''s the config/routes.rb file code snippet for the relevant
controller - Events
map.resources :events, :member =>
2006 May 16
7
RJS head scratcher
I''ve been joyfully using RJS in a lot of our work lately, with no issues
whatsoever. However, I am porting an application to RJS templates that
we''ve had for a while, and having some issues.
When I use Firebug to see what is going on, the response comes back like
this:
try {
new Effect.Highlight("gi_error_row",{duration:20});
} catch (e) { alert(''RJS
2012 Sep 22
1
formtastic does not save at all
Rails 3.1.3
I am using Formtastic gem in order to deal with multi-select
dependencies.
<%= semantic_form_for(@give) do |f| %>
<%= f.inputs do %>
<%= f.input :departure,
:collection => Departure.find(:all, :order=>:city).collect{ |c|
[c.city,c.id]},
:required=>true %>
<div id="destinationCity">
<%= render :partial =>