Displaying 9 results from an estimated 9 matches for "rubynubi".
Did you mean:
rubynuby
2006 Mar 06
1
rubynuby == two views on one page?
This question may be one of those monumentally rtfm/do some more reading
sort of affairs.
At the moment though, it is not apparent to me how one would go about
creating a page that has two very separate rails views (say, a forum,
and a "sign up for email notification" view) on the same page.
If anybody knows of a tutorial that covers this or can explain why it''s
not a
2007 Dec 05
5
Active Record, Migration, and Translation
Hi,
I think the columns and table in migration should be able to have an
optional "display_name" set manually. Something like:
create_table :people, {display_name => "Personne"} do |t|
t.column :first_name :string, :display_name => "Prénom".
end
Let me explain my point of view:
Rails is a framework made to write programs in English. You see it when
you
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-
2008 Jun 24
10
Question on passing arguments inside a view.
I''m running into an issue undefined local variable or method
`directoryid'' for #<EditorialsController:0x23f1bf8>
I have two Models on a legacy database and only one controller called
editorials with two actions index and display.
I''m trying to pass in a parameter from the results of my search and
getting the above error.
Example:
two tables one is editorial the
2006 Mar 08
23
rubynuby == I''m a''scared to set it all up...
I''ve been mostly lurking here with an occasional nuby question for a few
weeks now. It seems like Ruby and Rails and the many libraries and
tools growing up around it are a remarkable toolset. Unfortunately I''m
finding the whole enchilada a bit daunting.
It seems that if one is to truly tap into the power of this thing and do
a significant amount of developing, one needs
2007 Nov 27
1
O/T div.fieldWithErrors styling
this is kinda trivial but I''m anal and it bugs me :)
whenever there''s a error in the form the error field is wrapped with
<div class="fieldWithErrors"> </div>
this throws my form''s styling off because it puts too much space b/t
fields and worse makes the form as wide as possible. How do I fix
this? I''ve tried
div.fieldWithErrors {
2007 Mar 22
6
Anyone using Goldberg for production sites?
Just starting to look at Goldberg and I like what I see so far. However,
there''s quite a bit in there. Anyone using Goldberg for production sites?
How is the security, flexibility, etc?
Thanks for any input you can provide!
Jake
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2007 Dec 14
3
Preview Message Before Saving?
Hi all,
I''m sure this is really simple, but I can''t seem to figure it out. I
want to let users preview their messages before submitting. Something in
the form of:
def new
@post = Post.new
end
def preview
#preview message text here
#@post = Post.new(params[:post]) <--?
end
def create
#save message on user''s confirmation
...
@post.save
end
Have any
2008 Jun 09
0
association build changed under rails 2.1?
class Post < ActiveRecord::Base
has_many :assets
end
This used to work fine
self.assets.build(attrs)
but under 2.1 it works sometimes and not others. Don''t know if that
is because Asset uses attachment_fu (which I''ve updated to latest)
But this is okay under 2.1
self.assets << Asset.new(attrs)
I''m probably doing something wrong. Which way is, well,