Displaying 3 results from an estimated 3 matches for "controllerhelp".
Did you mean:
controllerhelper
2009 Aug 16
5
any help with captcha in my comments ?
...asdasd", "_"=>""}
SyntaxError
(/Users/webstic/Sites/weblog/app/controllers/comments_controller.rb:11:
syntax error, unexpected kELSE, expecting kEND
else
^):
this is my code:
class CommentsController < ApplicationController
include SimpleCaptcha::ControllerHelpers
def create
if simple_captcha_valid?
@post = Post.find(params[:post_id])
@comment = @post.comments.create!(params[:comment])
respond_to do |format|
format.html { redirect_to @post }
format.js
else
flash[:notice] = "please right down the image veri...
2008 Dec 07
0
boolean button helper
...orms with the form_for helper. If you are not using a custom
builder, I assume you could open up the default FormBuilder and stick
it in there. If you''re not using form builders, this code won''t work
for you, but you could follow a similar pattern within
ApplicationHelper or your ControllerHelper. You''ll have to get rid of
@template and @object_name, as they are only available inside the
FormBuilder object.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post...
2009 Mar 01
1
sortable_element helper query
Is it possible to call helper method instead of controller action while
using sortable_element helper method?
Ref:
http://api.rubyonrails.org/classes/ActionView/Helpers/ScriptaculousHelper.html
The url field in the example is like controller/action type. Can we call
ControllerHelper method instead? Because we need to save the sorted
element in the database, so my guess was to call a method in a model.
Any clues?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google...