Displaying 14 results from an estimated 14 matches for "cadams1342".
2006 Jul 25
9
Can anyone explain this code? It uses Inject
def webs
@webs ||= Web.find(:all).inject({}) { |webs, web|
webs.merge(web.address => web) }
end
--
Posted via http://www.ruby-forum.com/.
2006 Aug 09
4
Do i need multiple mongrel instances for good performance?
I have developed a rails application for my company.
It will be used by upto 3o people at a time. I have just read that
Mongrel will only process 1 request at a time (rails is only in 1
controller at a time). Does this mean that to get good performance i
need to run mongrel many times on different ports?
How many different instances of mongrel is recommended?
If this is true then it
2006 Jul 20
4
SVN rails problem
My rails project is at version 52. I want to revert the whole app to
version 50, effectively ignoring v 51+52
I ran
"svn update -r 50" in my working copy. Success.
I have done some work on version 50, but when i try commiting it tells
me that the file im commiting is out of date.
DOes anyone know the solution?
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
16
Session is being shared between tabs!!??
I have just spotted quite a serious problem with my rails app. My app
uses the session to store information. Most people who use the app may
have more than one instance of it open in their browser (multiple tabs).
The session stores which country the user has selected. On each browser
tab the user may select a different country. You can add items to a
country. There are problems with
2006 Jul 26
5
Restricting before_filter to certain actions?
Can you restric before_filter to specific actions?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 01
4
How do you evaluate text as code in Ruby?
How do you evaluate text as code in Ruby?
I''m sure there''s a technical term for this...
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Aug 03
1
strange before_filter error. is this a bug i have found?
...
before_filter :find_regression_test
def find_regression_test
@regression_test=RegressionTest.find(8)
end
....
The above seems like perfectly normal before_filter syntax, but it gives
this error. Aldo is no application trace, just a framework trace:
Any idea what is wrong?
NoMethodError in Regression testsController#modify_regression_test
private method `equal?''
2006 Aug 03
3
Help me for learning Rails for my project!!!
Hi, I am Anil
I am currently working on a Rails project in my company. I am facing some
problems listed below!
1. I have websites UI ready(HTML/CSS), I want it to convert it to rhtml. Is
their any script or software which will help me to convert html syntax to
rhtml, instead of manually changing it to rhtml ?
2. Which editor should be used for rails development. I have started using
RadRails
2006 Aug 08
11
When will rails support true prepared statements?
I''m in an Oracle shop, and it''s the 1 thing that gets on my bosses
nerves. I wish they would support this.
Anyone any idea if or when it will be supported?
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Aug 08
1
Rasing a number to a power? How to do in Ruby? Im clueless!
Hi
I cant figure out how to raise a number to a power in ruby.
ANy ideas??
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Aug 01
0
storing object with no "marshal_dump is defined" in session
One of my classes uses the class GSL::Poly. It seems from this error
message that rails won''t let me store it in the session. ANy ideas what
i can do?
Rendering
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)
no marshal_dump is defined for class GSL::Poly
/usr/local/lib/ruby/1.8/pstore.rb:348:in
2006 Aug 04
0
How do you use form helpers in your controllers or classes?
I need to use the number_with_precision Form helper in my controllers
and classes.
How do i do this?
Thanks in advance
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
5
Can we have have protected methods in our REST controllers?
I gotta be quick, sos if it seems rushed.
Latest word from DHH is that the REST conttrollers should only have 4
methods :
Create, Update, New, Delete
If you don''t know about DHH''s latest thing then leave now, or go read
about it on his blog.
Does this mean i can''t have private methods in my controller?? I have a
method that create and new share.
Thanks
Chris
2006 Aug 01
5
how do set default value for ActiveRecord fields?
Everytime a new record object is created i.e. Record.new, i want certain
fields to be the same.
Any idea how to do this?
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.