Inplace edit for rails displaying me the whole code content

Hi All,

Im using in_place_edit in my application ,for acheving this i have
used a plugin (super_inplace_controls). My rails version is 2.3.8

Insted of displaying the value and on click to provide the form for
editing. It is displaying me the whole code in the page.

as

0

<input
class=“inplace_text_field” id=“disposition_weight_lower”
name=“disposition_weight[lower]” size=“30” type=“text” value=“0” /

<input class=“inplace_submit” name=“commit” type=“submit” value=“OK” /
Cancel

<img
alt=“Spinner” src="/images/spinner.gif?1275917204" /

On 5 April 2011 13:47, Sasi [email protected] wrote:

Hi All,

Im using in_place_edit in my application ,for acheving this i have
used a plugin (super_inplace_controls). My rails version is 2.3.8

Insted of displaying the value and on click to provide the form for
editing. It is displaying me the whole code in the page.

Post here the code you are using to display the form. Otherwise how
are we supposed to guess what you may be doing wrong?

Colin

Ya sure…

In controller at the top i have used…

in_place_edit_for :value_store, :lower
in_place_edit_for :value_store, :upper

and in views i have called the text filed as

<%for @value_store in @value_stores %>


<
%=@vale_store.colour.capitalize%>
<%=in_place_text_field :value_store, :lower%></
td>
<%=in_place_text_field :vale_store, :upper%></
td>

<%end%>

On 5 April 2011 14:17, Colin L. [email protected] wrote:

in_place_edit_for :value_store, :upper
td>

<%end%>

Where in the above does the html you posted appear?
Did you realise that it is not valid html to put a form inside a td,
if that is what you are trying to do.

Sorry, talking out of my proverbial. Of course a form can be put inside
a td.

Colin

On Apr 5, 2011, at 9:17 AM, Colin L. wrote:

Did you realise that it is not valid html to put a form inside a td,
if that is what you are trying to do.

Sorry, I disagree. Do you have a source for this? I just did a
Textmate test of this: New XHTML document, type table and tab-expand
it, click into the first TD, type form and expand it, validate at W3C.
Completely valid.

Walter

On 5 April 2011 14:33, Walter Lee D. [email protected] wrote:

On Apr 5, 2011, at 9:17 AM, Colin L. wrote:

Did you realise that it is not valid html to put a form inside a td,
if that is what you are trying to do.

Sorry, I disagree. Do you have a source for this? I just did a Textmate test
of this: New XHTML document, type table and tab-expand it, click into the
first TD, type form and expand it, validate at W3C. Completely valid.

Our posts crossed, you are correct of course. Senility setting in.

Colin

On 5 April 2011 14:02, Sasi [email protected] wrote:

Ya sure…

Please don’t top post, it makes it difficult to follow the thread.
Insert your reply at appropriate points in previous message. Thanks

   <td class="<%=@vale_store.colour%>"><

%=@vale_store.colour.capitalize%>
<%=in_place_text_field :value_store, :lower%></
td>
<%=in_place_text_field :vale_store, :upper%></
td>

<%end%>

Where in the above does the html you posted appear?
Did you realise that it is not valid html to put a form inside a td,
if that is what you are trying to do.

Colin