I don't think you should have one technology under your belt..
Learn many.
And to answer some of your questions.
Ruby Rails have testing tools, test:unit, rpsec, cucumber, webrat,
shoulda, to name but a few.
Why isn't it big in industry?
It doesn't really have much commercial support for
I have had som success with ROR and of course some problem.
I have managed to install Ruby on Rails partially. I can issue the
command
rails myTestApp
but the command doesn't create all the necessary files. For example I
miss dispatch.fcgi and .httaccess.
I installed Ruby 1.8.7, by compiling
Hi Champs,
I am not able to see the layout page code in test.log? I have design
like this:
TOP
LEFTLayoutRIGHT
I am rendering this left panel and right panel both as well as based on
conditions rendering Layout. Now, when i ran my test it gives me nothing
at the layout page.
Hi,
I actually have a mysql error in my ruby script.
After several requests I have the too many connections error.
But I don't why because I created a queue that runs 5 threads. Every
thread execute many mysql requests.
I limited the queue to 5 threads to not overload mysql. But it seems
that
I need to implement some email functionality to a web application and I was
wondering if anyone has implemented a decent mail system and could possibly
give me some tips. My initial designs are leaving me a bit cold.
In a nutshell, I'm thinking of giving the user the ability to create their
own
Hi everyone,
I have tried with the dynamic menu using
http://railscasts.com/episodes/88-dynamic-select-menus site.
i implemented and it was working fine for 'form_for' tag.
But i need to do the same function with 'form_tag' as like as,
% javascript 'dynamic_states' %
%form_tag do%
p
Hi,
I have two different mail server servers. Both are SSL enabled.
When I try to read mail from my mail box I got following error on 1
machine,
Errno::ECONNREFUSED: Connection refused - connect(2)
from /usr/lib/ruby/1.8/net/smtp.rb:551:in `initialize'
from
Hi,
I have the case where I have an object A, which has a has_many through
relationship with objects B. Each A will be associated with a
relatively small number of Bs. I want to cycle through some Bs, and
check if an A has them.
So, something like:
a = A.find 123
bs = B.all
bs.map{|b|
Want to use the skills that you've developed throughout your career to
make the world a better place? If so, then let's talk. GamesThatGive
(http://gamesthatgive.net) just closed on their Series A round and is
seeking a Senior Web Engineer interested in building socially
responsible web
The Ferret Indexing is taking very 7 days to complete (table
with10Million row - DB size is about 2 gb). I could see my memory is
used only 40% and cpu is utilized only 10%. but still the indexing is
slow.
I am running ferret through DRB
My acts_as_ferret index definition looks something like
i use
ruby
rails
console
netbeans(only for editing and intelisense)
github
lunar pages dedicated linux server
On Jan 21, 5:12 pm, Aleksey Gureiev spyro...@gmail.com wrote:
You guys are surprising me. So you are looking for developers and you
don't know what you need from them. Given that
Hello Everyone,
I'm seeking some candidates for the following positions:
Front End Web Developer
https://oakley.taleo.net/careersection/2/jobdetail.ftl?lang=enjob=10467
Web Architect
https://oakley.taleo.net/careersection/2/jobdetail.ftl?lang=enjob=10466
Systems Administrator
I doubt many companies will off-shore rails development to India.
Rails is mostly used by small teams of developers in an agile
environment. I currently work in a rails shop and there are four of us
building all the systems. We pair everyday and switch it up every
other day so everyone
Hello.
Try adding this line to config/environment.rb in config block:
config.action_controller.session_store = :active_record_store
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to
Consider this example:
organizations has_many employees
employee belongs_to organization
employee belongs_to adminstered_organization
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to
Hi
Consider this example:
organizations has_many employees
employee belongs_to organization
employee belongs_to adminstered_organization
Could you please specify the model structure and relation now?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
On Thu, 2010-01-21 at 23:51 -0800, Ugis Ozols wrote:
Hello.
Try adding this line to config/environment.rb in config block:
config.action_controller.session_store = :active_record_store
yes, this was needed. I think I expected that this was going to be added
automatically when I ran
I use RoR because it excels at fast, quality development if one is
willing to learn and use its conventions. It is not perfect, but for
99% of business applications, it is more than adequate. My clients
have complex business problems that require well-documented,
methodical solutions - they don't
Tom Mac wrote:
Hi
Consider this example:
organizations has_many employees
employee belongs_to organization
employee belongs_to adminstered_organization
Could you please specify the model structure and relation now?
maybe the requirement needs to be expanded a touch as it was a
hi,
i have a Project-Task model association. The Project: SHOW EDIT list
the tasks...now:
i want to have a pop-up-window triggered in the edit view. the
pop-up-window should show a basic Task-NEW form, BUT with some
information about the Project, eg the title of the project. after
submitting i
IN NEED OF EXPLANATION:
class Comment ActiveRecord::Base
validate :must_be_friends
def must_be_friends
errors.add_to_base(Must be friends to leave a comment)
unless commenter.friend_of?(commentee)
end
end
The above code comes from rails documentation. There
Hi,
i'm trying to use the acts as commentable Plugin, bit it seems not to
work:
My Commentable Model is the Task Class.
if i try to get the Comments of a Task Object , e.g.
task.find(:first)
task.comments
it occurs this error:
ActiveRecord::StatementInvalid: Mysql::Error: Unknown column
On Fri, 2010-01-22 at 05:44 -0700, Craig White wrote:
On Thu, 2010-01-21 at 23:51 -0800, Ugis Ozols wrote:
Hello.
Try adding this line to config/environment.rb in config block:
config.action_controller.session_store = :active_record_store
yes, this was needed. I think I
I think I am doing something simply boneheaded but I don't see it. I
hope you are willing to take a look:
I am simply wanting to upload a file and hand the file in my controller
to some code that will process it. It is not getting stored.
The UI is a maintain page with a file entry field in a
On Fri, Jan 22, 2010 at 12:56 AM, Patrick Lindborg li...@ruby-forum.com wrote:
I have managed to install Ruby on Rails partially. I can issue the
command
rails myTestApp
but the command doesn't create all the necessary files. For example I
miss dispatch.fcgi and .httaccess.
No, those
On Jan 21, 2:19 pm, David Sainte-claire li...@ruby-forum.com wrote:
To start off, I don't know if this is unorthodox, or if someone has had
to implement something similar. I've searched all over Google and don't
really a see a good solution for what I'm trying to do.
Basically I created my
+1 for recommeding The passionate programmer
On Thu, Jan 21, 2010 at 10:56 PM, Steven Elliott Jr steven.elliot...@me.com
wrote:
I doubt many companies will off-shore rails development to India. Rails is
mostly used by small teams of developers in an agile environment. I
currently work in a
On Jan 21, 5:12 pm, Aleksey Gureiev spyro...@gmail.com wrote:
You guys are surprising me. So you are looking for developers and you
don't know what you need from them. Given that someone said it's, for
example, RSpec that they need to know well, how would you to assess
the prospective
I'm looking at code in a project. I have no clue what is being passed
into the resource parameter:
def read_authorized?(resource)
if resource.respond_to? :user_read_authorized?
resource.user_read_authorized? current_user
else
true
end
end
Is there any
2010/1/22 John Merlino li...@ruby-forum.com:
I'm looking at code in a project. I have no clue what is being passed
into the resource parameter:
def read_authorized?(resource)
if resource.respond_to? :user_read_authorized?
resource.user_read_authorized? current_user
else
I have some further trace information regarding this situation. I am
really at a bit of a loss here on how to proceed. I cannot find any
evidence that the update user attributes is working. This is in my
User model:
has_many:roles, :through = :clearances
has_many
On Jan 22, 2010, at 1:02 PM, John Merlino wrote:
I'm looking at code in a project. I have no clue what is being passed
into the resource parameter:
def read_authorized?(resource)
if resource.respond_to? :user_read_authorized?
resource.user_read_authorized? current_user
else
Colin Law wrote:
2010/1/22 John Merlino li...@ruby-forum.com:
Is there any kind of debugging feature I can run to see what gets passed
into resource in this specific instance.
Have a look at the Rails Guide on debugging then use ruby-debug to
break into the function. Then you can inspect
Hi Aleksey,
I think it just comes down to preference really and I prefer the idea
of a having a common rule that I start all finders with current_office
and then I instantly know that I have safely scoped it to the current
application instance.
Of course you way would work to, I just think that
2010/1/22 John Merlino li...@ruby-forum.com:
Colin Law wrote:
2010/1/22 John Merlino li...@ruby-forum.com:
Is there any kind of debugging feature I can run to see what gets passed
into resource in this specific instance.
Have a look at the Rails Guide on debugging then use ruby-debug to
Colin Law wrote:
2010/1/22 John Merlino li...@ruby-forum.com:
terminal and nothing happens.
Have you put the line
debugger
at the appropriate point to break in your app? That is what it means
by your app calling the debugger method.
You should then see the break happen in the same
Ginty wrote:
Hi Aleksey,
I think it just comes down to preference really and I prefer the idea
of a having a common rule that I start all finders with current_office
and then I instantly know that I have safely scoped it to the current
application instance.
Of course you way would work
John Merlino wrote:
Colin Law wrote:
2010/1/22 John Merlino li...@ruby-forum.com:
terminal and nothing happens.
Have you put the line
debugger
at the appropriate point to break in your app? That is what it means
by your app calling the debugger method.
You should then see the break
John Merlino wrote:
[...]
I was able to fix the above error. However, I try to inspect what the
value of resource is and I get this using the p command as the rails
guide suggests:
(rdb:1) p resource
NameError Exception: undefined local variable or method `resource' for
Marnen Laibow-Koser wrote:
John Merlino wrote:
[...]
I was able to fix the above error. However, I try to inspect what the
value of resource is and I get this using the p command as the rails
guide suggests:
(rdb:1) p resource
NameError Exception: undefined local variable or method
Hi,
I am new to rspec. I am trying to write a spec for a simple ruby program i.e
class First
def test
a = gets.chomp
return a
end
end
I have tried in different ways test method is called from the spec file. but
gets.chomp is not executing…
Please kindly advise me, how to write spec for this.
John Merlino wrote:
[...]
I'm confused when I do this:
(rdb:5) p read_authorized?(resource)
true
It returns a value of true. But it's undefined?
No. Based on what you've said, resource is undefined, but
read_authorized? Is written in such a way that if it is passed an
undefined
Hassan Schroeder wrote:
On Fri, Jan 22, 2010 at 12:56 AM, Patrick Lindborg
li...@ruby-forum.com wrote:
I have managed to install Ruby on Rails partially. I can issue the
command
rails myTestApp
but the command doesn't create all the necessary files. For example I
miss dispatch.fcgi and
On Fri, Jan 22, 2010 at 1:35 PM, Patrick Lindborg li...@ruby-forum.com wrote:
But I hade read several guides and tutorials that those files are
created and modified.
There are certainly outdated tutorials out there, unfortunately.
--
Hassan Schroeder
Hassan Schroeder wrote:
On Fri, Jan 22, 2010 at 1:35 PM, Patrick Lindborg li...@ruby-forum.com
wrote:
But I hade read several guides and tutorials that those files are
created and modified.
There are certainly outdated tutorials out there, unfortunately.
--
Hassan Schroeder
On Fri, Jan 22, 2010 at 2:06 PM, Patrick Lindborg li...@ruby-forum.com wrote:
Ok I found one of those on Ruby On Rails website though.
URL?
Could you or someone else point me to a more up to date tutorial?
http://guides.rails.info/getting_started.html currently based on 2.3.3
HTH, and
Rob Biedenharn wrote:
On Jan 22, 2010, at 1:02 PM, John Merlino wrote:
Is there any kind of debugging feature I can run to see what gets
passed
into resource in this specific instance.
Also, user_read_authorized? is not defined anywhere else in
application.
Is that legal in rails?
Hassan Schroeder wrote:
On Fri, Jan 22, 2010 at 2:06 PM, Patrick Lindborg li...@ruby-forum.com
wrote:
Ok I found one of those on Ruby On Rails website though.
URL?
Could you or someone else point me to a more up to date tutorial?
http://guides.rails.info/getting_started.html
Hi,
When i open the rails application by netbeans i got the error as below,
Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update
--system` and try again.
I have the ruby version ruby 1.8.7 (2009-04-08 patchlevel 160)
[i686-linux]
And the below list are gem list
actionmailer
Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update
--system` and try again.
Its all there for you
sudo gem update --system
On 23 January 2010 03:34, Periyasamy Ramachandiran li...@ruby-forum.com wrote:
Hi,
When i open the rails application by netbeans i got the error as
Rob Lacey wrote:
Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update
--system` and try again.
Its all there for you
sudo gem update --system
On 23 January 2010 03:34, Periyasamy Ramachandiran
li...@ruby-forum.com wrote:
[i686-linux]
rack (1.0.1)
--
Posted via
try only sudo gem update
and reply if its not works
On Sat, Jan 23, 2010 at 10:48 AM, Periyasamy Ramachandiran
li...@ruby-forum.com wrote:
Rob Lacey wrote:
Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update
--system` and try again.
Its all there for you
sudo gem
kannav rajeev wrote:
try only sudo gem update
and reply if its not works
On Sat, Jan 23, 2010 at 10:48 AM, Periyasamy Ramachandiran
li...@ruby-forum.com wrote:
[i686-linux]
.
http://www.robl.me
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe
goto http://rubyforge.org/frs/?group_id=126release_id=37073
download ruby gem 1.3.1 unpack it in your application
then gem install (which is unziiped full name) -- local thats it it looks
like that
rails_appsudo gem install (which is unziiped full name) -- local
ok its over
On Sat, Jan 23, 2010
Hi sharma,
Thanks for your response. I tried as you have mentioned 'sudo gem
update'. I got some gem update for rack and ruby-debug. Please find the
result below,
[r...@localhost ~]# sudo gem update
Updating installed gems
Updating rack
Successfully installed rack-1.1.0
Updating
kannav rajeev wrote:
goto http://rubyforge.org/frs/?group_id=126release_id=37073
download ruby gem 1.3.1 unpack it in your application
then gem install (which is unziiped full name) -- local thats it it
looks
like that
rails_appsudo gem install (which is unziiped full name) -- local
ok
sudo **gem install rubygems-update -v 1.3.1
On Sat, Jan 23, 2010 at 11:33 AM, Periyasamy Ramachandiran
li...@ruby-forum.com wrote:
kannav rajeev wrote:
goto http://rubyforge.org/frs/?group_id=126release_id=37073
download ruby gem 1.3.1 unpack it in your application
then gem install
Controller name user.
I have changed to user/index, still same error.
Development.log:
Processing UserController#surahome (for 192.168.1.5 at 2010-01-23
00:09:08) [GET]
Rendering template within layouts/standard
Rendering user/surahome
ActionView::TemplateError (Missing
Controller name user.
I have changed to user/index, still same error.
Development.log:
Processing UserController#index (for 192.168.1.5 at 2010-01-23
00:09:08) [GET]
Rendering template within layouts/standard
Rendering user/index
ActionView::TemplateError (Missing template
Lots of new features, but a few API changes (thus the MAJOR version change).
Basics are:
Network Delivery classes are no longer singletons, each instance of
Mail can have it's own delivery method
Attachments are just parts and have an awesome API
Mail default values for address fields can be
60 matches
Mail list logo