similar to: widgEditor submit problem

Displaying 20 results from an estimated 10000 matches similar to: "widgEditor submit problem"

2007 Mar 11
0
widgEditor not showing on edit page?
I implemented widgEditor for a text_area, I use <%= text_area ''post'', ''description'', ''class''=>''widgEditor'' %> to offer a basic textarea allowing users to enter text. it shows when creating a new record, but not shows when a user clicks edit page. the edit pages just shows a plain text_area. all rhtml pages are
2009 Aug 16
2
rails form_for submit button
Hi, Presently the submit button is coming as a button in below case. <% form_for @chapter do |chapter_form| %> ... labels ... text_areas.. <%= chapter_form.submit ''Create'' %> I want to build a custom button in CSS and show that instead of the button. Can anyone help me please?
2008 Jan 09
4
Problems with widgEditor (HTML rich text editor)
Hello, I need a HTML rich text editor for a field, and widgEditor seems to be just what I need: http://www.themaninblue.com/experiment/widgEditor/ I''ve installed it, following the Aidanf.net''s post: http://www.aidanf.net/adding-a-rich-text-editor-to-your-rails-application But althougth it displays well, I can''t write inside; as if it was Read-only!! I can''t
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:<%=
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
2007 Oct 23
0
Noob Question: Problems with FormOptionsHelpers
Hi! I have problems to see existing values in several FormOptionsHelpers.. (text_area or select for example): <% @models.each do |model| %> <% form_for "model", model, :url => { :action => :update } do |f| %> <%= f.text_field :name %> // works <%= text_area "model", "text" %> // doesn''t work... <%= select
2013 Mar 13
2
Form_for text_area
Hi all, Since I am new to ruby on rails. I''m stuck in some minor issue. I am using form_for in my view. In that I am using a text text. So, My question is, how to add a default value to the text_area along with the row and col values. Please help me out ASAP. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2011 Mar 02
2
Nested forms validation problem
Hi All, I''m trying to learn Ruby on Rails and have got an issue with the validation of a nested form. I think I have got it setup correctly as it appears to be saving the data as expected, but it is not wrapping the CSS class (field_with_errors) to the fields, and if data is entered into the nested fields it disappears on form submit (if there are validation errors). The validation
2007 Sep 27
2
text_area empty_clob()
Anyone know why my text_area field is being prefilled with "empty_clob()" instead of simply being empty like I would expect? I''m using Oracle 10g so I suspect it''s coming from the oci8 driver somehow? Here''s the code: <% form_for :user do |f| -%> <%= f.text_area :notes, :rows => 2, :cols => 32 %> <% end -%> It should be just an empty
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|%>
2008 Dec 02
1
form_for with partial using do |@f|
Is it possible to pass this FormBuilder object to a controller and then back to a partial? I have a form rendering a partial that i would like to update with a call to my controller based on user selectable parameters, but when the AJAX comes back, i get this error message because i cannot pass a form builder object between the controller and the view: "undefined method
2007 Jul 31
0
Edit not working with named routes
HELP! I''m a relatively new rails user and I''m stuck. I''m trying to build a relatively simple blog and I decided that I liked the way named routes look in the code. So I added map.resources :posts to my routes.db file. I then went through and updated my controller to take advantage of the named routes that were generated. I also updated all of my views and everything
2006 Jul 27
2
setting initial text field values in a form
Hi, I am trying to create a basic form in which I want one of the fields initialized before displaying it. My code (in a view) is as follows: <% if ( session[:user_id] != nil ) then logged_in_user = User.find(session[:user_id]) end %> <% form_for :suggestion do |form| %> <label for="suggestion_title">Topic:</label><br/> <%=
2010 Jan 05
0
Problem with associating comments with blog posts on same page
Hi, I will admit I am very new to ruby and I am trying to do something that is not in any tutorials I have found. If you see a more conventional way to do some of the things I am trying to do, please let me know. What I am trying to accomplish. People can edit the comments on the same page as the listing of posts. The problem is that when I go to create the comment, it is not getting associated
2008 Jan 14
5
Only "form_tag" support uploading file?
Hi, there: I wanna use plug-in "file_column" to upload image to the server. In my test app, the view is as follow & it works well: ==================== <h1>New entry</h1> <%= error_messages_for ''entry'' %> <% form_tag ''create'', :multipart => true do -%> <p><label
2010 Jan 02
2
Underscore in a model's method causes it not to be called from the form helper
Hi, I''m using rails 2.3.5 and found following behavior, which I can''t explain. Maybe someone can. I have a model named ''Game''. Its database schema contains a field named ''pconfig_src''. I want to lazy load the pconfig_src value, so added following method to the model: def pconfig_src read_attribute(''pconfig_src'') ||
2013 Mar 06
1
How to create multiple submit paths for form_for?
I''ve been researching this for some time and there doesn''t seem to be an easy solution. I have a form_for that submits materials. As usual, when it edits an existing material it automatically goes to the update action. This is fine. However, I want to have a second submit button "Save As" that allows a user to save another version of the material. This second
2011 May 16
2
Cannot get multipart => true , running well in my form when using remote => true
I have a simple form , with a file field = form_for (Clip.new), :html => {:multipart => true} , :remote => true , do |f| = f.hidden_field :user_id, {:value => current_user.id} = f.text_field :name = f.text_area :description = f.file_field :image = f.submit I18n.t(:add) generating the html code <form accept-charset="UTF-8"
2006 Jun 25
0
Colouring ''text_area'' plus scrollbar on view
Hi, I am trying to colour a text_area input field, including the scrollbar (2-dimensional field). I was able to change the colour of a button associated with a ''submit_tag'' by adding a :class and defining properties in my CSS file. Is something similar required? Thanks, Lee. ___________________________________________________________ All new Yahoo! Mail "The
2013 Dec 10
2
form_tag + fields_for Rails 4
Hi There, I''m trying to user fields_for inside a form_tag, but i can''t catch it on my controller. I just take some html code off to makes it easy to read my view... i''m using campuses_path(current_church, @campus) instead form_for @campus, because my route is like resources :campuses, :path => ":church/campuses" <%= form_tag