Displaying 20 results from an estimated 31 matches for "railsmanu".
Did you mean:
railsmanual
2006 May 28
9
Railsmanual.org
Did anyone else catch the redesign? I don''t know who''s responsible, but it''s
lookin better!
Good job...
--
seth at subimage interactive
http://www.subimage.com/sublog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060528/f9f92618/attachment.html
2006 Jul 15
0
railsmanual.com search from POST to GET
Hi,
I don''t know who runs railsmanual.com. Hopefully I''ll find him here.
Would it be possible to change the search from from using a POST
request to a GET request? This would make the back button a little
easier to use when returning to the search results. Right now a back
button to the search results requires a click in an...
2006 Aug 16
3
Reflecting on associations
Is there an easy way to programatically work out the associations on a model?
If not, is there a positive reason it was omitted, or is it just something that
hasn''t been implemented yet?
Thanks
Gareth
2006 Mar 07
2
Using form_tag_with_upload_progress
All,
I''m attempting to use "form_tag_with_upload_progress"
http://railsmanual.org/module/ActionView::Helpers::UploadProgressHelper/form_tag_with_upload_progress
However, I''m having a hard time understanding what I''m supposed to
provide and where in order to take advantage of it. There''s a lot of
information and I''m sure I can figure...
2007 May 12
4
Multiply and format with thousands separator
I have just started with Ruby and Rails and am still greatly confuse,
finding the usual tutorials not much help.
What I want to do is take two numbers from my database, multiply them
together and display them in a list with a comma for the thousands
separator. This would be very easy to do in a spreadsheet, so I assumed
it would be easy to do in Ruby on Rails but I can''t work out how.
I
2006 Feb 16
4
newbie question regarding basic AJAX form verification
Hi,
I''m confused about how form verification with AJAX works. Let''s say I have a
''new.rhtml'' view that contains a form with two fields, and the form action is
''create''. Let''s assume that I also want to do some type of data validation on
one of the two fields via AJAX before I submit the form. But since I''ve
already
2006 Feb 28
8
HABTM count table
Hello,
I have a question about HABTM and counting records.
I have these models
class Sort < ActiveRecord::Base
has_and_belongs_to_many :reports
end
class Report < ActiveRecord::Base
has_and_belongs_to_many :region
has_and_belongs_to_many :subjects
has_and_belongs_to_many :sorts
end
And i would like to get a count like
@sort.reports.count
The problem is get this query:
2006 May 30
7
Stripping HTML tags from a string
Hello,
Is there a common way of stripping html tags from a string? Right now I''m
just calling gsub!(/<.*?>/, ''''), but with a background in PHP and always
having used its strip_tags() method, I wonder if the Rails community has
standardized this fairly common task with something a bit less simpleminded
than my quick fix.
Thanks!
Zack
-------------- next part
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like
<a href="http://www.google.com" target="_blank" >google</a>
with the link_to function ?
Thanks
2006 Jul 07
1
FYI: Manuals Site
I didn''t get much notice on #rubyonrails, so I thought I''d post here:
http://manuals.rubyonrails.com/ looks pretty broken, also lots of
"book not found" errors: http://manuals.rubyonrails.com/read/book/17
-Mat
2006 Apr 11
1
Ad hoc query from derived view
I''m new to rails and have a query that uses a derived view (see below) and
am wondering how return the data. I don''t have a model for this, so I not
sure if find_by_sql can be used. Any help is greatly appreciated.
select product
,mailer
,sum(dev_total) dev
,sum(qa_total) qa
2006 Feb 05
3
attr_accessor help understanding
i''m having trouble understanding the attr_accessor and attr_accessible
syntax in models. I''m workink through the Agile book and even a look at
the ruby doc does not really help to clarify.
Thanks aftershock
--
Posted via http://www.ruby-forum.com/.
2006 Feb 19
3
multi-sql problem?
hi all,
how to excute multi sql statement in rails
#-------------------------------------------------------
sql_1 = ''drop table if exists test''
sql_2 = ''create temporary table test select * from test_1''
sql_3=''select * from test''
#-------------------------------------------------------
any ideas
all regards
--
Posted via
2006 Jan 31
1
Calling Controller without redirecting
This is a bit of a weird question, but what if i wanted to pick a controller
from a controller without redirecting? Let me explain:
user goes to localhost/foobar/choose
foobar/choose picks one of the three
phobar/index
bar/index
foo/index
but instead of redirecting, it simply executres one of the controllers and
forwards the result. Strange? yes. Useful? very. Thx
-------------- next part
2006 Jan 25
1
Rails day 2: where is my association?
I?m following along a few tutorials on the web and trying to implement
my own example, but I must be missing something because I can?t get
has_many or belongs_to to work like I expected. now I have watched all
the videos and made a cookbook several times with different interfaces.
what I''m looking for is *not* a code snippet to solve something (because
I already have that),
2007 Feb 15
3
Restrict attributes in to_xml
For example, let''s say I have a User model with 2 attributes:
1. pw_hash
2. pw_salt
I don''t want these to show up in the to_xml method. How do I keep to_xml
from using these attributes?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Jan 30
3
general questions
Agile book lacks some basic information, perhaps I need to learn ruby as
I am lacking information - some basic things - especially debugging.
The following are stupid newbie questions and any portion of them
answered would be great.
1. If I am viewing a page from app/views/clients/ and on this page, I
want to put a ''link_to'' directive to say app/views/case_managers...
how do I
2006 Aug 13
3
+ migrations in camping
...ase when the app is loaded. So
stick it in your app''s `create` method[2]. As you''re developing, you can add
new migration classes, save the file, refresh the page in your browser, and when
The Camping Server reloads your app, it''ll update the database.
_why
[1] http://railsmanual.com/class/ActiveRecord%3A%3AMigration
[2] http://code.whytheluckystiff.net/camping/wiki/GiveUsTheCreateMethod
2006 Jul 27
5
Calculate methods on attr_accessor objects
Is it possible to use the calculate methods (sum, etc.) on attr_accessor
attributes?
Ie:
Class Item < ActiveRecord::Base
attr_accessor :total_cost
def total_cost
@total_cost = self.cost_unit * self.amount
end
calling Item.sum(:total_cost) or Item.sum(''total_cost'') both return a
unknown column ''total_cost'' mysql error.
I thought that active
2006 Apr 05
3
how to insert Current DateTime value into database?
Hi,
I want to insert onto database the Current DateTime Value into database
field "Store_date" with datatype (DATETIME). How to do tihs?
I am usiing hidden variable into my form as follows:-
=======================
<%= hidden_field("store", "store_date", :value =>:datetime ) %>
=======================
But when I m submmittng form I couldn''t find