Displaying 20 results from an estimated 600 matches similar to: "Edit in Place"
2006 Feb 05
2
in_place_editor is missing load_text_url option
Ajax.InPlaceEditor supports a loadTextURL option. If you look at the
InPlaceEditor page
(http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor)
you''ll see an excellent example in Rails of how you might use that
option textilize in place edited stuff.
Unfortunately, the example doesn''t use the nifty Rails in_place_editor
method because
2008 Jun 06
2
Scriptalicious: Ajax Inline Text Editor
Hi, I''m just starting out with Scriptalicious + Prototype, and I''ve
run into a problem.
I''m trying to create an Ajax.InPlaceEditor that combines the custom
size textbox, and the custom parameter (from the examples in the
scriptalicious documentation)
http://github.com/madrobby/scriptaculous/wikis/ajax-inplaceeditor
I''ve tried a couple different methods (one of
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value
of a javascript variable as an argument. Something like that:
link_to_remote "my_link",
:update => ''my_div'',
:url => { :action => "my_action", :var =>
''my_var'' }
Basically,
2006 Mar 23
5
Polymorphic associations
I have just updated rails and added polymorphic associations but they
are not working properly. I''m following the recipe 17 of "Rails Recipes"
and I''m getting an "Unknown key(s): as" error. These associations work
properly on the console. The problem occurs when I''m listing the
items... perhaps the problem is pagination. Is this a bug or what
2005 Dec 24
2
Textilize on ajax update
I''m writing a basic to-do
application. I''m using a form_remote_tag to submit the entry to my
controller, which then returns the entry to be displayed in the table
of to-do items. However, I''d like to be able to "textilize" the entry
without having to reload the page. Is there any way to have my ajax
function textilize the text before displaying it in the list?
2007 Nov 16
3
Route Information
Is there a method to return a hash of the route configuration based on
a path?
For example:
magic_method(''/my_controller/my_action/my_id'')
=>
{:controller => ''my_controller'', :action => ''my_action'', :id =>
''my_id''}
Thanks!
Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I
input my text into, which will then be put into an e-mail and sent out.
The problem I am having is when there is a single line break.
Multiple line breaks work fine (hitting enter twice), but single line
breaks don''t seem to work properly.
Take the following input:
Line1.
Line2.
Line3.
Line4.
Using
2006 May 09
1
Reusing a model to form and link_to.
Hy guys,
Inside my app I have a form which contains user information.
Sometimes a have a form with a text_field as above:
<%= form_remote_tag(:html => { :action => url_for(:controller =>
"my_controller", :action => "my_action") }) %>
<%= text_field(''my_object'', ''my_parameter'', :maxlength =>
2008 Feb 02
3
Question abt redirect_to..
I found a reference to using attachment_fu and followed the lead of it
but having an issue with the redirect_to that renders the fb:render
tag - In my form I''m setting the canvas to false, file is being
uploaded / save fine but when I attempt to redirect:
redirect_to :action => :new, :canvas => true
Unfortunatly it looks like my callback URL is getting printed twice, e.g.
2005 Dec 21
8
textilize - redcloth
Hi,
I''m using textilize with redcloth 3.0.4. Everything works best except
that paragraphs are not translated as an HTML paragraph
When I write something like:
*first paragraph*
second paragraph
the output is without paragraph:
*first paragraph*
second paragraph
Any help??? Thanks
Jörg
2006 Apr 25
4
redcloth poblems
Hi, I''m having some problems with redcloth(3.0.4 gem) and textilize.
I have a string:
"h2. hello
_what''s up?_"
which is being textilized as:
<h2>hello<br />
<em>what’s up?</em></h2>
so no paragraph and h2 wrapped all the way.
the input is coming from firefox 1.5.2 on a mac
Anybody got any idea what the problem might be?
--
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be
alpha)? Does it affect performance much? Is there a way to get it to
automatically process templates without having to call textilize?
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2008 Oct 06
2
textilize with --- (3 dashes) removes text
Hi,
using --- (3 dashes) at the end of a string that is textilized,
results in a single hr tag without any text. This seems weird to me.
Am I overlooking something?
>> av = ActionView::Base.new
>> av.textilize("sometext ---")
=> "<hr />"
Cheers,
Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2010 Jan 31
3
Append/Prepend to a template from controller method
I want a method in app/controllers/application.rb that can
prepend/append text to whatever template gets rendered. Of course I
can''t call render twice w/o getting a double render error, so is this
possible?
I want to redirect after a delay using a meta refresh. Here''s what I''ve
got:
app/controllers/application_controller.rb:
def redirect_after_delay (url, delay)
2006 Jan 18
1
RedCloth and lang specific hooks
Hi,
I use textilize() which is a great way of letting end users edit contents.
But the code in RedCloth is quite compact, and doesn''t allow for easily
adding correct typographic behaviour depending on the lang of the text.
For instance, correct quoting uses round double quotes in english and
double carons ? ? in french; the spaces before punctuation can be
corrected too. I''d
2006 Feb 17
7
Rich Text Editor (RTE)
Hello,
We are developing an commercial application that need to use an RTE.
Someone know one RTE editor that can I use in an commercial application?
We need basic functions to format paragrapher, bold, italic, ...
I found FCKEditor but it is very expensive and weight.
I found this list too but don''t know what is trustful:
http://www.geniisoft.com/showcase.nsf/WebEditors
Some
2006 Aug 06
0
Can I strip a file suffix off a URL with routing?
I would like a route that strips of the suffix of a url before
determining the action. Eg:
http://mydomain.com/my_controller/my_action.pdf
Would map to: { :controller => ''my_controller'', :action => ''my_action'' }
Is this possible?
Thanks,
-Jonathan.
2006 Mar 10
2
textilize != RedCloth.new ?
For me, textilize(stuff) produces nasty stuff - <br>''s instead of
enclosing <p>''s and some closing <h*>''s are missing. RedCloth.new(stuff)
works fine though. Isn''t textilize supposed to produce the same output?
Or do I need to tweak something?
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Mar 25
4
the textilize method
I saw the guy in the 15 min blog video calling a method called textilize
however when i call it rails says it cant find this method. Is this
somehting extra i have to install to ruby... like a gem or somehting
--
Posted via http://www.ruby-forum.com/.
2001 Feb 18
3
PATCH: Round 2: RH initscripts backward compatibility
I've cleaned up Pekka Savola's newly revised sshd.init and additional
sshd-functions and modified them to work they way i've been arguing
they should work.
Compatibility functions are defined in ./contrib/redhat/sshd-functions,
which should get installed no matter what release of Red Hat Linux
OpenSSH is getting built for, to be consistent across releases.
Specific changes from