Displaying 20 results from an estimated 4000 matches similar to: "Action working in local, not working once deployed"
2008 Apr 29
1
Webistrano recipes association (was: [Capistrano] Webistrano 1.3 released)
I see at some point recipes were changed from project-associated to
stage-associated, is there some explanation or examples of that use-case?
Could I request we have both? In my current cap scripts, we don''t have any
stage-specific recipes, but maybe I''m just not understanding this
completely.
On Tue, Apr 29, 2008 at 1:04 PM, Jonathan Weiss
2009 Nov 10
0
File.open to open Remotely
I know that this question looks like a Webistrano question but since I
don’t know much about Ruby, I thought it might be a simple Ruby question
too.
We have installed Webistrano and Capistrano install on some server
(let’s say Server1). I have created a Webistrano project and inside it I
have defined my Host to be ‘Server2’. I have this Ruby code inside my
project:
require
2008 Jan 17
6
Webistrano on Windows
Greetings. I just read a note on Webistrano''s website about Webistrano
not running on Windows.
Does anyone know if there''s a patch to get it running? I''d like to use
this tool, but I''m using Windows XP for the time being and need to
deploy from there.
When I tried running Webistrano for the first time last night it threw
an exception when trying to start the
2008 Aug 30
4
acts_as_commentable: find Post by date of comment
Hello,
I am using acts_as_commentable (related to Post) and I would like to
know how to get the list the posts ordered by date of comment (i.e.
post with recent comment first).
in addition if a post has no comment, i would it to be inserted based
on its creation date.
Thanks for your help
Nicolas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2007 Sep 28
2
form action url example
Hi,
I have the following example:
it ''should have a form with an action attribute'' do
response.should have_tag( "form[action=?]",
''/users/1/machines/1/trouble_tickets'')
end
for a form like so:
<% form_for( :trouble_ticket,
:url => { :action => ''create'',
:user_id => @machine.current_owner,
2008 Oct 25
2
Update action | NoMethodError | nil.to_sym
Ok, totally no reason why I''m getting an error in this model update
and no other. HELP!
CONTROLLER:
# GET /employees/1/edit
def edit
@employee = Employees.find(params[:id])
end
VIEW:
<h1>Edit Employee</h1>
<div id="main-sub">
<%= error_messages_for :employees %>
<% form_for(@employee) do |f| %>
<table width="600"
2008 Sep 09
2
form_for submit to a custom action
hi forum,
I am new to rails, and i am just getting my hang of things.
Problem,
how do you pass content captured in a form to a custom method?
I have the following form:
<% form_for :message, @message, :url => { :action => ''reply''} do |f|
%>
<table cellpadding="4" cellspacing="5">
<tr>
<td>Content:<%=
2007 Aug 29
0
Re: Webistrano - A Web UI for managing Capistrano depl
Jonathan Weiss wrote:
> I''m happy to announce the release of Webistrano - a Web UI for managing
> Capistrano deployments.
Jonathan,
This looks fantastic! I''m sure it will come in useful in our team for
managing deployments.
Cheers,
Tom
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
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 =>
2003 Mar 27
2
Na action with Lowess smoothing
Hi there,
I cant seem to find a way for the lowess smoothing function to handle "NA"
values.
Can anyone help??
Regards,
Wayne
Dr Wayne R. Jones
Statistician / Research Analyst
KSS Group plc
St James''s Buildings
79 Oxford Street
Manchester M1 6SS
Tel: +44(0)161 609 4084
Mob: +44(0)7810 523 713
KSS Ltd
A division of Knowledge Support Systems Group plc
Seventh Floor St
2006 Apr 25
7
undefined method form_for ?
Seems the only issues I ever have with Rails are these bizarre fiddly
little things that make no sense.
Can''t for the life of me understand why I''m getting undefined method on
form_for in a view?
And it''s actually part of the acts_as_authenticated plugin that''s doing
it. But how can it not know about form_for?
--
Posted via http://www.ruby-forum.com/.
2011 Jan 05
16
Nicedit (rich text editor)
Hello, I''m trying to use Nicedit to improve my text_areas in some views
of my project.
I have installed jquery:
ruby script/plugin install git://github.com/aaronchi/jrails.git
nicEdit plugin:
ruby script/plugin install
git://github.com/sergio-fry/Simple-nicEdit.git
Add js in layout:
<%= javascript_include_tag ''nicEdit'', ''nicEditInit'' %>
Use it
2008 Apr 06
10
about the form_for ..
question one:
is there any select box tag for form_for?
now,perhaps i just can use the select or select_tag?
question tow:
i have a A model,it has one B such as:
class A< ActiveRecord::Base
belongs_to :B
when i use the form_for tag,how can i output the variable name?like
this:
<%form_for :a,@a,:url=>{:controller=>"a",:action=>"save"} do |f|%>
2006 Aug 02
7
form_for not working with Markaby
I''m playing around with Markaby and I decided to write a little blog app.
I''m running into issues with forms however. If I use form_for the output of
the form gets swallowed. For example:
form_for :article, @article do |f|
f.text_field :title
f.check_box :published
f.text_area :description
f.text_field :pub_date
f.text_area :content
end
gets rendered as an empty form
2009 Aug 04
6
form_for
hi everybody...
I have a form_for in that, onclicking submit button i am calling
a javascript for validation.If validation fails that form_for doesnt do
anything.But even the validation fails it goes to the controller and
action.
here my code:
<%form_for :promotion_code,
2007 Dec 10
11
map.namespace, rake routes yields no POST URLs
routes.rb
map.namespace :admin do |admin|
admin.resources :cupcakes
end
rake routes
cupcakes GET /cupcakes
formatted_cupcakes GET /cupcakes.:format
POST /cupcakes
POST /cupcakes.:format
That said, what the heck goes here:
form_for(:cupcake, @cupcake, xxx_url) # ???
Calling create_admin_cupcake_url yields...
undefined local variable
2008 Nov 04
3
Nester Resources, Routes and Class Inheritance
Ok here''s a quicky... but a goody :)
We have models Company, Reference and Applicant... and References and
Applicants just inherit from Company, and are basically companies with
the type field set to reference...
All companies can have a phone number associated with them, and phone
number is a different model...
I''m having trouble using the form_for method with a company that
2010 Mar 06
7
form_for, submit, and parameters disappearing
Consider the following:
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 May 23
1
[Rails 3] Trouble with named routes and form_for
Hi guys,
I''m having trouble getting named routes and form_for to play nicely in quite the way I would expect. Here''s a quick summary of what I''ve got going on:
Named route:
resources :thread, :class_name => "forum_thread"
Controller name:
forum_thread_controller
Model object:
forum_thread
In both my new and edit actions I''m setting up an
2012 Feb 07
2
save method (create action) saves twice
Rails 3.1.3
I have changed a regular scaffold action a bit so that it can save using
ajax.
All I needed to do was adding ":remote => true" in
<div id="script_new">
<%= form_for script, :remote => true do |f| %> <!-- HERE!!! -->
<%= f.hidden_field :video_id %>
<%= f.text_field :text %>
<%= f.submit "save" %>