Displaying 20 results from an estimated 2000 matches similar to: "How to keep formatting of text in textarea?"
2006 Mar 08
3
attribute or instance method or what?
Hi!
Uhm are attributes just something like additional members of a class,
other than those that come from the names of columns in the table?
I''ve got images table, which has ''name'' column. I''ve added support for
creating thumbnails out of uploaded pictures and i''d like to have an
easy way of accessing them in my views.
How to do it? I.e. my image
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
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 Mar 09
7
How to restrict access to admin part of the page?
Hi!
What is the easiest way to restrict access to some part of the page?
In php i just put .htaccess and .htpasswd files in /admin folder and it
worked.
Now i''ve got one admin folder for controllers, one for views, public
folder and i''m not really sure if it''s still possible. So what is the
easiest way? I don''t have any user logging features on my site,
2006 Mar 03
17
RCSS problems
Hi List!
Following http://rcss.rubyforge.org/files/README.html, I''m trying to get
RCSS to work with Rails. The rcss command itself works fine, but when
trying to access http://localhost:3000/rcss/test.css I always get
"Unknown action - No action responded to test.css", which I don''t
understand since the route and controller are in place.
Anyway, hopefully this is
2006 Mar 31
6
string interpolation - #{} vs. single vs. double quotes
Could someone point me to documentation that provides a succinct and accurate description of the difference between interpolation using #{}, single quotes, and double quotes ?
I imagine there''s a set of precedence rules that govern behavior if/when they''re mixed. I''d like to get clear on this.
Thanks,
Bill
-------------- next part --------------
An HTML attachment was
2006 Mar 02
3
plugin versioning
When I install a plugin, does Rails record the version installed anywhere?
Maybe I''m not doing it the "right" way, but I''ve excluded vendors from my
source repository. I''d like some ''record'' of what plugins are used that is
under source control.
David
2006 Mar 06
4
Are views inheritable
Is it possible to use a child model''s controller to impliment it''s
parents view before adding its own output ?
possibly by the use of super ?
_tony
--
Posted via http://www.ruby-forum.com/.
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 08
3
Many renders in one view?
Hi!
This was probably asked many times, but i can''t find it anywhere.
How to render in my view many actions (sometimes from different
controllers)?
So i.e. I will have user status/login form at the top, form for
creating/editing some data on the left and a list of these data elements
on the right and some other things at the bottom?
Can i put some of this stuff to the layout? So i
2006 Feb 02
19
No more logs after SVN?
Hello,
Yesterday I "subversioned" my app using svn and now everything works fine except I don''t see any log entries in development.log?
What would cause the log entries to be not produced anymore?
Thanks
Frank
---------------------------------
Bring words and photos together (easily) with
PhotoMail - it''s free and works with Yahoo! Mail.
2006 Mar 23
6
[mongrel] [fedora5] install error " can''t find ruby libs"
Installed Fedora5.
Installed Ruby 1.8.4.
Installed rubygems.
Installed rails.
Created test app to verify that ruby and rails were working.
When I attempted to install mongrel via:
sudo gem install mongrel
I get this error:
Install required dependency daemons? [Yn] y
Install required dependency gem_plugin? [Yn] y
Building native extensions. This could take a while...
can''t find
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/.
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a
silly question. I''m following along with the nice little tutorial here,
to get an idea of the system:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3
However, I''m running into an issue where the author adds a new field in
his database, refreshes the browser and shows
2006 Mar 01
3
Security issue: a user can fill cache with random urls
Say your app responds to : store/show/3 and caching is enable at the
store controller level.
A route says : map.connect ''store/:action/:id'', :controller => ''store''
All the following urls will be processed and cached (the cache
filling with ''page not found'' messages) !
store/foo/bar
store/show/090934298234897342
2006 Feb 22
5
svn externals and Edge Rails
Hi all:
I am considering using edge rails so I can use join tables. I want to
use svn:externals to manage edge rails, however I want to understand
it more before I go and set everything up. so everytime I commit my
app it will pull the most recent version of rails from the svn
repository, right? What if the current version of rails is unstable,
is there a way to rollback edgerails and NOT my app?
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?
2006 Jan 30
2
Modules, controllers and inheritance
Hi!
I was trying to cleanup my app and I runned into quite a problem. My
controllers in submodule do not seem to inherit things from base
class.
I have following setup:
app/controllers/
application.rb:
class ApplicationController
admin/
admin_controller.rb:
class Admin::AdminController < ApplicationController
include LoginEngine
include UserEngine
2007 Dec 05
2
some redcloth questions
1) Is there a way to strip a redcloth string of all redcloth tags? I
need to display a snippet of the text in an index page and want all
markings removed. I used RedCloth.new(''a'').methods but didn''t find
anything appropriate. For now, I''m converting to html then stripping
tags.
2) what''s the best practice in term of storing user''s redcloth-
2006 Jun 27
2
testing - how to get access to an instance variable
inside controller
def foo
@city = City.find(@params[:id])
@city.bar = 1234
end
While writing functional tests how do I ensure that the @city.bar is 1234?
def test_edit
get :edit, :id => 1
assert_not_nil assigns(:city)
#?? how to assert that city.bar is 1234
end
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: