[Rails] Re: formats in action view base

2012-09-15 Thread 7stud --
7stud -- wrote in post #1076203:
>
> Modules that are included are inserted into the inheritance chain.
> Where in the chain?
>
>
>
> module Cat
>   def greet
> puts 'meow'
>   end
> end
>
> class Animal
>   def greet
> puts 'hi'
>   end
> end
>
> class Dog < Animal
>   include Cat
>
>   def greet
> super
>   end
> end
>
> --output:--
> hi
>

Whoops.  That should be:

--output:--
meow

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Rails 3.2.6 hates dbi gem ?

2012-09-15 Thread Satish S.
I have a  bad problem

I have a small rails app .. was running fine with ruby 1.8x and rails
2.x
In my extreme stupidity I decided to move to ruby 1.9.x and rails 3 ..
and it's a glorious pain.

My ruby app uses mysql .. and I use active record for that.
However there is an earlier pgm I had written to fill in the database
before I did rails (2x) which is part of the complete  application now.
( I can test/run the standalone pgm outside rails and there is no
problem .. it works)

This standalone program in using mysql and dbi gems
  I call this program as such from a model

 system("ruby standalonepgm.ruby -args ")

In  rails 2.0 this  worked without any issue.
In 3.0 the program exits without any way to capture the error.


Running under console I see that the program dies because it can't find
dbi gem!

If I put dbi gem in the Gemfile and do bundle date  but then there is
real trouble.
Rails refuse to start  -  "rails server" dies with all kind of issues ..
I can put in the screendump ..
but that's unimportant  I think.

There seem to be 2 issues
1. DBI is surely incompatible with the  gods of rails
2. Rails creates a sandbox .. and all programs called must live in that
sandbox (that's why just a require statement doesn't suffice).

My question is .. is it fixable or I am one of those who got bitten by
the hidden black magic of rails .. and my past 8+ weeks of effort is
down the tubes  ?

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Re: formats in action view base

2012-09-15 Thread 7stud --
class Animal
  def greet
puts 'hi'
  end
end

class Dog < Animal
  def greet
super
  end
end


d = Dog.new
d.greet

--output:--
hi





module Animal
  def greet
puts 'hi'
  end
end

class Dog
  include Animal

  def greet
super
  end
end

d = Dog.new
d.greet

--output:--
hi


Modules that are included are inserted into the inheritance chain. 
Where in the chain?



module Cat
  def greet
puts 'meow'
  end
end

class Animal
  def greet
puts 'hi'
  end
end

class Dog < Animal
  include Cat

  def greet
super
  end
end

--output:--
hi


You tell me?

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Re: formats in action view base

2012-09-15 Thread John Merlino
Let's say I call LookupContext with a details hash consisitng of a
format. Here's the sequence as I understand it:

1) First lookup_context.rb is loaded, which means the macros are
called immediately. The register_detail macro, accepts a symbol and
block. We pass it a symbol :formats and a block whose return value is
an array of symbols representing a variety of formats:

    register_detail(:formats) { ActionView::Base.default_formats ||
[:html, :text, :js, :css,  :xml, :json] }

2) We declare a getter/setter registered_details at module level
(which will make it available at class and module level (e.g.
LookupContext.registered_details or Accessors.class.registered_details
- where class refers to Module)). We initialize it as an array in
LookupContext class context. When register_detail class method is
invoked, we append the :formats symbol to that array. We overwrite the
assignment of initialize by iterating through that class array and
indexing strings that we will later evaluate. The strings substitute n
for :formats. In other words, when the string is evaluated in ruby, it
will check if a user passed a :formats key in the details hash passed
to the initialize method, and if not, then it will default to the
implementation of default_formats. Then the result is assigned to the
@details instance variable hash. That default implementation is
defined using :define_method and sending the message to the Accessors
module, which is included in LookupContext, and, thus, default_formats
is available to LookupContext objects as public instance methods. We
declare a setter/getter formats method via the Accessors module. And
then we declare an initialize_details method, which will be evaluated
when the constructor is invoked during the instantiation of
LookupContext. At this point, we just did some dynamic definitions via
declarative macro-level class methods.

    mattr_accessor :registered_details
    self.registered_details = []

    def self.register_detail(name, options = {}, &block)
      self.registered_details << name
      initialize = registered_details.map { |n| "@details[:#{n}] =
details[:#{n}] || default_#{n}" }

      Accessors.send :define_method, :"default_#{name}", &block
      Accessors.module_eval <<-METHOD, __FILE__, __LINE__ + 1
        def #{name}
          @details.fetch(:#{name}, [])
        end

        def #{name}=(value)
          value = value.present? ? Array(value) : default_#{name}
          _set_detail(:#{name}, value) if value != @details[:#{name}]
        end

        remove_possible_method :initialize_details
        def initialize_details(details)
          #{initialize.join("\n")}
        end
      METHOD
    end

    include Accessors


3) Now that our LookupContext class has a template we can use, we
instantiate a LookupContext object, passing in a hash with a formats
key:

    LookupContext.new('app/views', {:formats => :abc})


4) The constructor method is called. We pass in our hash as a local
variable called details. We initialize our LookupContext @details
instance variable to be an empty hash. Hence, now we have a @details
instance variable available to the instance methods of the
LookupContext object instances. We then call initialize_details
method, passing in our details hash, which comprises of the hash we
passed as the second argument during initialization of the object.
Remember our initialize local variable is an array of strings. In this
case, it's an array of three strings, since we call register_detail
three times, passing each time a symbol and block. Now the array of
strings get evaluated and we add a nonbreaking space so the ruby
interpreter doesn't raise any kind of syntax exception during the
evaluation. We check if the details parameter contains a :formats key
and in our case, since we passed a :formats hash to the constructor it
does, so we assign the return value (:abc) to the :formats key of the
instance variable @details hash. Note if we did not pass an argument
to the constructor, then default_formats would be invoked, and
remember we used define_method on Accessors module to build the
defaults_formats method and assign it a default block, which returns
an array of defaults for formats. So now we have our @details instance
variable that we initialized with the constructor, we then assigned it
a key/value pair value (e.g. :formats => :abc). So by invoking the
getter formats method we dynamically created, @details.fetch(:formats)
will return :abc.


    class LookupContext
    def initialize(view_paths, details = {}, prefixes = [])
      @details, @details_key = {}, nil
      @skip_default_locale = false
      @cache = true
      @prefixes = prefixes
      @rendered_format = nil

      self.view_paths = view_paths
      initialize_details(details)
    end


5) Then we decide to set a format, for example, when we instantiate
ActionView::Base, passing a format as the fourth parameter to it:

    lookup_context.formats  = formats if formats


6) We may t

Re: [Rails] Re: New to Ruby

2012-09-15 Thread Victor Goff
http://RubyLearning.com is there for you too.

There is a Core Ruby batch starting in about a week as well.  Not
'Rails-centric' but Ruby-centric.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Re: ruby server chrashes

2012-09-15 Thread roelof
Hello, 

Doing all the steps again did the step.
The only thing I changed is before I made the gemset I entered ruby use 
1.9.3

Everythig thanks for the help

Roelof



Op zaterdag 15 september 2012 12:15:31 UTC+2 schreef Frederick Cheung het 
volgende:
>
> On Friday, September 14, 2012 8:23:06 PM UTC+1, roelof wrote:
>>
>> Hello, 
>>
>> When I do rails server it chrashed with this ouput : 
>> http://pastebin.com/DJ21qC5h
>>
>> Anyone a idea what is the cause of this problem and how to solve this ?
>>
>>  
> If reinstalling the gems in a clean gemset doesn't work then It's usually 
> an environmental thing, for example if you use macports its sometimes 
> possible for one version of a library to be picked up while compiling ruby 
> (or a gem) but a different version is used when ruby actually runs. 
> Unfortunately working out exactly what is wrong is a bit hit and miss
>
> Fred
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/-2zj6olvxnAJ.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: New to Ruby

2012-09-15 Thread ANIKET KADAM
thanks very much, i m newbie too

On Sat, Sep 15, 2012 at 10:01 PM, fuzzy  wrote:

> Hello Samir,
>
> I am a newbie as well, and not even a programmer ... I have built up
> this list of potential help. Some are free and others you pay for.
> Just check each one out and use there free services until you get more
> proficient.
>
> I used Michael Hartl' screencasts to learn the basics. Here is the
> url:
> http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
>
> There is many other tutorials, Rob Connery has some introductory
> screen casts:
> http://tekpub.com/
>
> Ryan Bates has a whole lot of railscasts that address specific issues
> in rails:
> http://railscasts.com/?view=list
>
> Kevin Wang and Chris Lee are offering a course in rails:
> http://www.railstutors.com/
>
> Then you have railsmentors.org where you can sign up and request a
> mentor to help you through a sticky spot.
>
> Another great resource is Rails Guide.
>
> Peepcode has a series on rails:
>
> http://www.rubyinside.com/peepcode-releases-the-meet-rails-3-screencast-series-4039.html
>
> Rails Zombies is a fun introduction:
> http://railsforzombies.org/
>
> Another great service is Rails hotline ... this one you phone up and
> you get a rails programmer on the phone who will talk you through your
> problem ... if you find he has really helped you, then you can buy the
> group some more phone minutes ... this is all explained at the web
> site:
> http://rails.pockethotline.com/
>
> Another site, just for reference, is a real expensive site but for
> folks who are already proficient in rails but want some more power ...
> owningrails:
> http://owningrails.com/
>
> I guess that is it for me ... I think there are even more resources
> but maybe some of the other members could fill you in on those.
>
> Keep on riding the rails.
>
>
> On Sep 15, 12:16 am, Samir  wrote:
> > Hi Friends. I am extremely new to Ruby. can you please suggest me how to
> > proceed to grab this in a short span of time...
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] formats in action view base

2012-09-15 Thread John Merlino
When you invoke ActionView::Base, it in turn invokes a LookupContext
object. The LookupContext class object has some class level macros
that builds some instance methods corresponding to a format:




register_detail(:formats) { ActionView::Base.default_formats ||
[:html, :text, :js, :css,  :xml, :json] }
 def self.register_detail(name, options = {}, &block)
  self.registered_details << name
  initialize = registered_details.map { |n| "@details[:#{n}] =
details[:#{n}] || default_#{n}" }

  Accessors.send :define_method, :"default_#{name}", &block
  Accessors.module_eval <<-METHOD, __FILE__, __LINE__ + 1
def #{name}
  @details.fetch(:#{name}, [])
end

def #{name}=(value)
  value = value.present? ? Array(value) : default_#{name}
  _set_detail(:#{name}, value) if value != @details[:#{name}]
end

remove_possible_method :initialize_details
def initialize_details(details)
  #{initialize.join("\n")}
end
  METHOD
end


So these methods are included as instance methods via the Accessors
module. Later the LookupContext class override the formats method with
its own definition:

def formats=(values)
  if values
values.concat(default_formats) if values.delete "*/*"
if values == [:js]
  values << :html
  @html_fallback_for_js = true
end
  end
  super(values)
end

1) So what was the purpose of adding a formats method to the Accessors
module and then include it into LookupContext, if it will always be
overriden by LookupContext's own implementation?

2) What is meant by expand ["*/*"] values in the comment "# Override
formats= to expand ["*/*"] values " which is directly above the
formats implementation on LookupContext?

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Array value to get except first two values

2012-09-15 Thread Rob Biedenharn
And, of course, you can just you plain 'ol Ruby for this too:

a = [1,2,3,4,5]
a[2..-1] # => [3,4,5]

%w[ a b c d e ][3..-1] #=> ['d', 'e']

-Rob

On Sep 15, 2012, at 6:25 AM, Yong Gu wrote:

> If you are using Rails, 
> 
> %w( a b c d ).from(0)  # => %w( a b c d )
> %w( a b c d ).from(2)  # => %w( c d )
> %w( a b c d ).from(10) # => %w()
> %w().from(0)   # => %w()
> 
> On Sep 15, 2012, at 6:21 PM, Maddy wrote:
> 
>> Hi folks,
>> 
>> In an array value i need to find except first two values,
>> 
>> example:
>> [1,2,3,4,5,6,7,8 ]
>> 
>> in that i need to get values except [1,2].
>> 
>> How can i get it from this array??
>> 
>> please advise
>> 
>> -- 
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/rubyonrails-talk/-/10r_aye1o4IJ.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
> 
> 
> -- 
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] [RSpec Testing] Methods take two arguments

2012-09-15 Thread Mirri Kim
P.S. But still, this will probably fail because you're not actually doing
anything (at least that's obvious) to trigger PdfHelper.create_pdf. "user"
has no knowledge of "file" assuming you have a callback to create a pdf
when a user is created. The first test is also weird, it's like saying a =
1; a.should == 1.

On Sun, Sep 16, 2012 at 1:57 AM, Mirri Kim  wrote:

> Hi there, try:
>
> PdfHelper.should_recieve(:create_pdf).with(user, file)
>
>
> On Sun, Sep 16, 2012 at 1:01 AM, Adnan  wrote:
>
>> Hello,
>>
>> Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to
>> test, if self.create method can take more than two arguments. But, when I
>> try to run my test. It showed
>>
>> *PdfHelper Should have two arguments
>>  Failure/Error:
>> create_pdf.should_receive(object,template).with(user,file)
>>  NameError:
>>undefined local variable or method `create_pdf' for
>> #
>>  # ./pdf_helper_spec.rb:13:in `block (2 levels) in '
>>
>> *here is my pdf_helper_spec.rb file:
>>
>> *
>> require 'pdf_helper'
>>
>> describe "PdfHelper" do
>> it "Should be in public folder" do
>> file = File.new ("#{Rails.root}/public/pdf")
>> File.exist?(file).should be_true
>>   end
>>
>>   it "Should have two arguments" do
>>   file =
>> File.new("#{Rails.root}/public/pdf/templates/chbox.pdf")
>>   user = User.create(:first_name => "mark", :last_name =>
>> "jhon", :account_number => "3442", :phone_number => "2333")
>>   create_pdf.should_receive(object,template).with(user,file)
>> end
>> end*
>> *
>> *how can I fix that?
>>
>> Thanks
>>
>> --
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/rubyonrails-talk/-/Cco_azHqoCsJ.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] [RSpec Testing] Methods take two arguments

2012-09-15 Thread Mirri Kim
Hi there, try:

PdfHelper.should_recieve(:create_pdf).with(user, file)

On Sun, Sep 16, 2012 at 1:01 AM, Adnan  wrote:

> Hello,
>
> Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to
> test, if self.create method can take more than two arguments. But, when I
> try to run my test. It showed
>
> *PdfHelper Should have two arguments
>  Failure/Error:
> create_pdf.should_receive(object,template).with(user,file)
>  NameError:
>undefined local variable or method `create_pdf' for
> #
>  # ./pdf_helper_spec.rb:13:in `block (2 levels) in '
>
> *here is my pdf_helper_spec.rb file:
>
> *
> require 'pdf_helper'
>
> describe "PdfHelper" do
> it "Should be in public folder" do
> file = File.new ("#{Rails.root}/public/pdf")
> File.exist?(file).should be_true
>   end
>
>   it "Should have two arguments" do
>   file =
> File.new("#{Rails.root}/public/pdf/templates/chbox.pdf")
>   user = User.create(:first_name => "mark", :last_name =>
> "jhon", :account_number => "3442", :phone_number => "2333")
>   create_pdf.should_receive(object,template).with(user,file)
> end
> end*
> *
> *how can I fix that?
>
> Thanks
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/Cco_azHqoCsJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] ROR books seem to be out of date

2012-09-15 Thread Peter Hickman
You seem to be complaining about the IDEs more than RoR. Give us some
details and we might be able to help you.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] ROR books seem to be out of date

2012-09-15 Thread Hassan Schroeder
On Sat, Sep 15, 2012 at 8:26 AM, brian brian  wrote:

/* content-free whinging deleted */

> help

No one is going to be able to even confirm your suspicions without
your providing actual information.

What "texts"? What "examples"? What versions of Rails, gem, etc.
are you trying to use? What problems are you having? Saying that
some code "won't run" is a waste of everyone's time.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] [RSpec Testing] Methods take two arguments

2012-09-15 Thread Adnan
Hello,

Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to test, 
if self.create method can take more than two arguments. But, when I try to 
run my test. It showed 

*PdfHelper Should have two arguments
 Failure/Error: 
create_pdf.should_receive(object,template).with(user,file)
 NameError:
   undefined local variable or method `create_pdf' for 
#
 # ./pdf_helper_spec.rb:13:in `block (2 levels) in '

*here is my pdf_helper_spec.rb file:

*
require 'pdf_helper'

describe "PdfHelper" do
it "Should be in public folder" do
file = File.new ("#{Rails.root}/public/pdf")
File.exist?(file).should be_true
  end
  
  it "Should have two arguments" do
  file = 
File.new("#{Rails.root}/public/pdf/templates/chbox.pdf")
  user = User.create(:first_name => "mark", :last_name => 
"jhon", :account_number => "3442", :phone_number => "2333")
  create_pdf.should_receive(object,template).with(user,file)
end
end*
*
*how can I fix that?

Thanks

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/Cco_azHqoCsJ.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] id NOT IN (?)

2012-09-15 Thread Walter Lee Davis

On Sep 15, 2012, at 2:01 AM, daynthan kabilan wrote:

> Hi i have 2 table users and issues 
> 
> I need daily report . all users are give a status to everyday.  i got it in 2 
> line. 
> But i need leave users also.   
> If i use 1st def method i got  user status list and all users no record 
> fields.
> 
> when i used the 2 nd def method i got  user status list only.
> 
> i attached my 2 def methods and the 2 screen shot also here
> 
>  def report  
>  @issues=Issue.find(:all, :conditions => ['DATE(created_on) = ?', 
> Date.today])
>issues = Array.new
>@issues.each do |iss|
>issues << iss.author_id
> end
> @users = User.find(:all, :conditions=>"id not in 
> ('#{issues}')").reverse
>  end
> 
>   def report  
>  @issues=Issue.find(:all, :conditions => ['DATE(created_on) = ?', 
> Date.today])
>  @users = User.find(:all, :conditions => ["id NOT IN (?)", 
> @issues])

Try this:

@users = User.where("id NOT IN (?)", @issues.map(&:id))

Are you using Rails 2.3 or 3 or 3+? I think the find(:all) is deprecated after 
2.3.

Walter


>end
> 
> can anyone help me thanks for advance
> 
> -- 
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
> 

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] ROR books seem to be out of date

2012-09-15 Thread brian brian
i am trying to get started on ROR but the texts all seem to be out of date 
as regards samples that wont run on later IDEs such as aptana studio 
,rubymine and so on.github examples are also out of date and wont run.
beginning Rails3 samples appear to also not able to run ,even using github 
examples .
ruby on rails for dummies is unusable as the IDE radrails is a later 
version without the helpfull tabs , also the less is more interface on 
aptana studio makes it difficult.
the only progress i can make is using the command line but again samples 
wont run when i use them from the ROR books .
i suspect the problem is later versions of the rails and gems s/w.

help


-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/MwI-R4bYG9cJ.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Array value to get except first two values

2012-09-15 Thread Yong Gu
If you are using Rails, 

%w( a b c d ).from(0)  # => %w( a b c d )
%w( a b c d ).from(2)  # => %w( c d )
%w( a b c d ).from(10) # => %w()
%w().from(0)   # => %w()

On Sep 15, 2012, at 6:21 PM, Maddy wrote:

> Hi folks,
> 
> In an array value i need to find except first two values,
> 
> example:
> [1,2,3,4,5,6,7,8 ]
> 
> in that i need to get values except [1,2].
> 
> How can i get it from this array??
> 
> please advise
> 
> -- 
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/rubyonrails-talk/-/10r_aye1o4IJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Re: New to Ruby

2012-09-15 Thread fuzzy
Hello Samir,

I am a newbie as well, and not even a programmer ... I have built up
this list of potential help. Some are free and others you pay for.
Just check each one out and use there free services until you get more
proficient.

I used Michael Hartl' screencasts to learn the basics. Here is the
url:
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book

There is many other tutorials, Rob Connery has some introductory
screen casts:
http://tekpub.com/

Ryan Bates has a whole lot of railscasts that address specific issues
in rails:
http://railscasts.com/?view=list

Kevin Wang and Chris Lee are offering a course in rails:
http://www.railstutors.com/

Then you have railsmentors.org where you can sign up and request a
mentor to help you through a sticky spot.

Another great resource is Rails Guide.

Peepcode has a series on rails:
http://www.rubyinside.com/peepcode-releases-the-meet-rails-3-screencast-series-4039.html

Rails Zombies is a fun introduction:
http://railsforzombies.org/

Another great service is Rails hotline ... this one you phone up and
you get a rails programmer on the phone who will talk you through your
problem ... if you find he has really helped you, then you can buy the
group some more phone minutes ... this is all explained at the web
site:
http://rails.pockethotline.com/

Another site, just for reference, is a real expensive site but for
folks who are already proficient in rails but want some more power ...
owningrails:
http://owningrails.com/

I guess that is it for me ... I think there are even more resources
but maybe some of the other members could fill you in on those.

Keep on riding the rails.


On Sep 15, 12:16 am, Samir  wrote:
> Hi Friends. I am extremely new to Ruby. can you please suggest me how to
> proceed to grab this in a short span of time...

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Array value to get except first two values

2012-09-15 Thread Jordon Bedwell
On Sat, Sep 15, 2012 at 9:33 AM, Hassan Schroeder
 wrote:
> On Sat, Sep 15, 2012 at 3:21 AM, Maddy  wrote:
>
>> In an array value i need to find except first two values,
>>
>> example:
>> [1,2,3,4,5,6,7,8 ]
>>
>> in that i need to get values except [1,2].
>>
>> How can i get it from this array??
>>
>> please advise
>
> Advisory #1: READ THE DOCS FOR ARRAY.
>
> Advisory #2:  [1,2,3,4,5,6,7,8].drop 2

Could you not just do [1, 2, 3, 4, 5, 6, 7, 8][2..-1]

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Array value to get except first two values

2012-09-15 Thread Hassan Schroeder
On Sat, Sep 15, 2012 at 3:21 AM, Maddy  wrote:

> In an array value i need to find except first two values,
>
> example:
> [1,2,3,4,5,6,7,8 ]
>
> in that i need to get values except [1,2].
>
> How can i get it from this array??
>
> please advise

Advisory #1: READ THE DOCS FOR ARRAY.

Advisory #2:  [1,2,3,4,5,6,7,8].drop 2

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] How to read Microsoft document file in ruby on rails ?

2012-09-15 Thread Scott Ribe
On Sep 15, 2012, at 7:27 AM, Paul wrote:

> The docx format is actually pretty simple...

You are really cruel to toy with him like that ;-)


-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-15 Thread Panayotis Matsinopoulos
@Gintautas I agree with you that all the details of a job posting should be
there from the beginning. But, please, exactly as you say that "this
mailing list is not a place to defend claims about Greece being a step from
bankrupt"
you need to know that *this mailing list is not for you to tell anybody
that Greece is a step from bankrupt in the first place. NO IT IS NOT A
FACT* that
has to do anything with this list.
*
*
Is that clear?

I believe that we need to start talking seriously here. Ask for job
postings to be fully detailed - and I am all with you, but stop telling
whether Greece is a step before or after anything. It is the person who
will read the post that will make his
own research/search about it.

Panayotis

On Sat, Sep 15, 2012 at 2:46 PM, Gintautas Šimkus wrote:

> Well if a country requests billions in euros of help, it indicates that
> they are not 'well' nation wide. I meant that the country of work is
> important and should be mentioned in a job proposal. That's it.
>
> Yeah I must've missed the joke on this one. It looked like a Greek tried
> to defend the proposition that working next to a sea is more important than
> the longer term guarantees for an applicant.
>
> If you take the fact that Greece is a step from bankrupt, then this
> mailing list is not a place to defend such claim. Just let people know and
> they'll decide by themselves.
>
>
> 2012/9/15 Gintautas Šimkus 
>
>> No problem. I deduce you are Greek. And that you tried to advocate
>> working in Greece is similar to working in DE or US, which is not that case
>> at this point.
>>
>> I mean people should decide by themselves where to work. And working in
>> Greece (or any other country) is OK with me. I was just pointing out that
>> the same job proposal could be crap under certain circumstances.ou
>>
>> I am simply for telling people where they'd be working fof
>>
>>
>> 2012/9/15 Panayotis Matsinopoulos 
>>
>>>
>>>
>>> On Sat, Sep 15, 2012 at 12:39 PM, Gintautas Šimkus 
>>> wrote:
>>>
 Not sure if you aware of it or not but Greece has a high chance of
 going bankrupt. So that maybe where the concerns come from. Blue sea is
 nice when you can live in the country w/o a good chance for your company to
 be nationalized, drop in value, or start paying you in some bogus currency
 which they've been printing 24/7 for 3 months (= little real value).

>>>
>>> @Gintautas Ah ok. Thanks for telling me that. You may also need to
>>> find ways to improve your sense of humor.
>>>
>>> BR
>>> Panayotis
>>> P.S. I am working for a Greek company that has 200% sales growth every
>>> year the last 3 years. We are 80 people, only, and we now have 130M Euro in
>>> sales by end of August, only for 2012. Hope we reach 200M Euro by end of
>>> year. Believe me, that we have good ways to circumvent any bankruptcy.
>>> Also, believe me, that rumors is something that we do not base our business
>>> on.
>>>
>>>
>>>
>>>
>>>
 2012/9/14 Panayotis Matsinopoulos 

> Peter ... you are absolutely right.
>
> BTW1, Greece is very-very-very cheap and has fantastic weather and
> beautiful sea and beaches.
> :-)
>
> BTW2. I am certain that this job cannot come from a Greek company.
> Greek companies rarely use Ruby on Rails. Most of them use java
> technologies and .NET
>
> Panayotis
>
>
> On Fri, Sep 14, 2012 at 1:21 PM, Peter Hickman <
> peterhickman...@googlemail.com> wrote:
>
>> And this is why people complain about job ad on this list!
>>
>> No location (I will not relocate to Greece for this job)
>> No salary (Without the location I have no idea as to the cost of
>> living and cannot judge the value of the package)
>> No company details (I have no interest in working for another "me too"
>> groupon clone)
>>
>> Without these details people who are unsuitable for the post will
>> apply and waste your time and people who are suitable will ignore it
>> because it is clearly a fishing expedition - you do not really have a
>> post available you just want a bunch of CVs to pester people with.
>>
>> --
>> 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
>> rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
> --
> Panayotis Matsinopoulos
> *P.S.:* I am sending SMS over the WEB using Rayo SMS
> *E-mail*: panayo...@matsinopoulos.gr
> *Site:* http://www.matsinopoulos.gr
> *Mobile:* +30 697 26 69 766
> *Skype Id: *panayotis.matsinopoulos
> *Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
> *Twitter:* http://www.twitter.com/pmatsino
> *LinkedIN:

Re: [Rails] How to read Microsoft document file in ruby on rails ?

2012-09-15 Thread Paul
The docx format is actually pretty simple: it is a zipped set of
files. If you upload it to the server and unzip it, you'll see a set
of xml files. You can poke around and figure out the format, or you
can find a spec on line.

On Thu, Sep 13, 2012 at 9:59 AM, Walter Lee Davis  wrote:
>
> On Sep 13, 2012, at 7:35 AM, rovin varshney wrote:
>
>> Hello Everyone,
>>  I m looking for parsing doc/docx file in ruby on rails.
>>  I have use File.open('filename','r'), but it shows special character 
>> instead of the content of file .
>
> If all you want is the text content of the files, you can try the ancient 
> Unix utility catdoc to do that. Just back-tick to that command (and make sure 
> it's installed in your Web server's path). The result will not be pretty, but 
> it will have all of the words in it.
>
> Walter
>
>>
>> Thanks.
>>
>> --
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/rubyonrails-talk/-/O5fkWF3a1ecJ.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Could not find gem 'nileshtrivedi-gupshup (>= 0) ruby' in the gems available on this machine.

2012-09-15 Thread Fabian Becker
The gem is simply called gupshup. Habe a look Art the readme oft the gem:
https://github.com/nileshtrivedi/gupshup
On Sep 15, 2012 1:42 PM, "Fahim Patel"  wrote:

>
> I wish to use nileshtrivedi-gupshup gem but i am getting this error.
>
> Can any one know about this?
> ERROR
> Could not find gem 'nileshtrivedi-gupshup (>= 0) ruby' in the gems
> available on this machine.
>
> Thanks
> Fahim Babar Patel
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/GwqNyJMS0mYJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-15 Thread Gintautas Šimkus
Well if a country requests billions in euros of help, it indicates that
they are not 'well' nation wide. I meant that the country of work is
important and should be mentioned in a job proposal. That's it.

Yeah I must've missed the joke on this one. It looked like a Greek tried to
defend the proposition that working next to a sea is more important than
the longer term guarantees for an applicant.

If you take the fact that Greece is a step from bankrupt, then this mailing
list is not a place to defend such claim. Just let people know and they'll
decide by themselves.

2012/9/15 Gintautas Šimkus 

> No problem. I deduce you are Greek. And that you tried to advocate working
> in Greece is similar to working in DE or US, which is not that case at this
> point.
>
> I mean people should decide by themselves where to work. And working in
> Greece (or any other country) is OK with me. I was just pointing out that
> the same job proposal could be crap under certain circumstances.
>
> I am simply for telling people where they'd be working fof
>
>
> 2012/9/15 Panayotis Matsinopoulos 
>
>>
>>
>> On Sat, Sep 15, 2012 at 12:39 PM, Gintautas Šimkus 
>> wrote:
>>
>>> Not sure if you aware of it or not but Greece has a high chance of going
>>> bankrupt. So that maybe where the concerns come from. Blue sea is nice when
>>> you can live in the country w/o a good chance for your company to be
>>> nationalized, drop in value, or start paying you in some bogus currency
>>> which they've been printing 24/7 for 3 months (= little real value).
>>>
>>
>> @Gintautas Ah ok. Thanks for telling me that. You may also need to
>> find ways to improve your sense of humor.
>>
>> BR
>> Panayotis
>> P.S. I am working for a Greek company that has 200% sales growth every
>> year the last 3 years. We are 80 people, only, and we now have 130M Euro in
>> sales by end of August, only for 2012. Hope we reach 200M Euro by end of
>> year. Believe me, that we have good ways to circumvent any bankruptcy.
>> Also, believe me, that rumors is something that we do not base our business
>> on.
>>
>>
>>
>>
>>
>>> 2012/9/14 Panayotis Matsinopoulos 
>>>
 Peter ... you are absolutely right.

 BTW1, Greece is very-very-very cheap and has fantastic weather and
 beautiful sea and beaches.
 :-)

 BTW2. I am certain that this job cannot come from a Greek company.
 Greek companies rarely use Ruby on Rails. Most of them use java
 technologies and .NET

 Panayotis


 On Fri, Sep 14, 2012 at 1:21 PM, Peter Hickman <
 peterhickman...@googlemail.com> wrote:

> And this is why people complain about job ad on this list!
>
> No location (I will not relocate to Greece for this job)
> No salary (Without the location I have no idea as to the cost of
> living and cannot judge the value of the package)
> No company details (I have no interest in working for another "me too"
> groupon clone)
>
> Without these details people who are unsuitable for the post will
> apply and waste your time and people who are suitable will ignore it
> because it is clearly a fishing expedition - you do not really have a
> post available you just want a bunch of CVs to pester people with.
>
> --
> 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 rubyonrails-talk@googlegroups.com
> .
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


 --
 Panayotis Matsinopoulos
 *P.S.:* I am sending SMS over the WEB using Rayo SMS
 *E-mail*: panayo...@matsinopoulos.gr
 *Site:* http://www.matsinopoulos.gr
 *Mobile:* +30 697 26 69 766
 *Skype Id: *panayotis.matsinopoulos
 *Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
 *Twitter:* http://www.twitter.com/pmatsino
 *LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
 *Github*: https://github.com/pmatsinopoulos
 *Rubygems:* https://rubygems.org/profiles/55099
 *CodeProject:*
 http://www.codeproject.com/Members/PanayotisMatsinopoulos
 *ODesk Profile:* https://www.odesk.com/users/~~c84135e75d1f2303

  --
 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 rubyonrails-talk@googlegroups.com.
 To unsubscribe from this group, send email to
 rubyonrails-talk+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



>>>
>>>
>>>
>>> --
>>> Pagarbiai,
>>> Gintautas
>>>
>>> --
>>> 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 ru

[Rails] Could not find gem 'nileshtrivedi-gupshup (>= 0) ruby' in the gems available on this machine.

2012-09-15 Thread Fahim Patel

I wish to use nileshtrivedi-gupshup gem but i am getting this error.

Can any one know about this?
ERROR
Could not find gem 'nileshtrivedi-gupshup (>= 0) ruby' in the gems 
available on this machine. 

Thanks 
Fahim Babar Patel

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/GwqNyJMS0mYJ.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Array value to get except first two values

2012-09-15 Thread Иван Бишевац
[1,2,3,4,5,6,7,8 ][0..1]

Look at documentation
http://ruby-doc.org/core-1.9.3/Array.html#method-i-5B-5D.
Generally good advice is to bookmark this 
 page.

2012/9/15 Maddy 

> [1,2,3,4,5,6,7,8 ]

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-15 Thread Gintautas Šimkus
No problem. I deduce you are Greek. And that you tried to advocate working
in Greece is similar to working in DE or US, which is not that case at this
point.

I mean people should decide by themselves where to work. And working in
Greece (or any other country) is OK with me. I was just pointing out that
the same job proposal could be crap under certain circumstances.

I am simply for telling people where they'd be working fof

2012/9/15 Panayotis Matsinopoulos 

>
>
> On Sat, Sep 15, 2012 at 12:39 PM, Gintautas Šimkus wrote:
>
>> Not sure if you aware of it or not but Greece has a high chance of going
>> bankrupt. So that maybe where the concerns come from. Blue sea is nice when
>> you can live in the country w/o a good chance for your company to be
>> nationalized, drop in value, or start paying you in some bogus currency
>> which they've been printing 24/7 for 3 months (= little real value).
>>
>
> @Gintautas Ah ok. Thanks for telling me that. You may also need to
> find ways to improve your sense of humor.
>
> BR
> Panayotis
> P.S. I am working for a Greek company that has 200% sales growth every
> year the last 3 years. We are 80 people, only, and we now have 130M Euro in
> sales by end of August, only for 2012. Hope we reach 200M Euro by end of
> year. Believe me, that we have good ways to circumvent any bankruptcy.
> Also, believe me, that rumors is something that we do not base our business
> on.
>
>
>
>
>
>> 2012/9/14 Panayotis Matsinopoulos 
>>
>>> Peter ... you are absolutely right.
>>>
>>> BTW1, Greece is very-very-very cheap and has fantastic weather and
>>> beautiful sea and beaches.
>>> :-)
>>>
>>> BTW2. I am certain that this job cannot come from a Greek company. Greek
>>> companies rarely use Ruby on Rails. Most of them use java technologies and
>>> .NET
>>>
>>> Panayotis
>>>
>>>
>>> On Fri, Sep 14, 2012 at 1:21 PM, Peter Hickman <
>>> peterhickman...@googlemail.com> wrote:
>>>
 And this is why people complain about job ad on this list!

 No location (I will not relocate to Greece for this job)
 No salary (Without the location I have no idea as to the cost of
 living and cannot judge the value of the package)
 No company details (I have no interest in working for another "me too"
 groupon clone)

 Without these details people who are unsuitable for the post will
 apply and waste your time and people who are suitable will ignore it
 because it is clearly a fishing expedition - you do not really have a
 post available you just want a bunch of CVs to pester people with.

 --
 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 rubyonrails-talk@googlegroups.com.
 To unsubscribe from this group, send email to
 rubyonrails-talk+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



>>>
>>>
>>> --
>>> Panayotis Matsinopoulos
>>> *P.S.:* I am sending SMS over the WEB using Rayo SMS
>>> *E-mail*: panayo...@matsinopoulos.gr
>>> *Site:* http://www.matsinopoulos.gr
>>> *Mobile:* +30 697 26 69 766
>>> *Skype Id: *panayotis.matsinopoulos
>>> *Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
>>> *Twitter:* http://www.twitter.com/pmatsino
>>> *LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
>>> *Github*: https://github.com/pmatsinopoulos
>>> *Rubygems:* https://rubygems.org/profiles/55099
>>> *CodeProject:* http://www.codeproject.com/Members/PanayotisMatsinopoulos
>>> *ODesk Profile:* https://www.odesk.com/users/~~c84135e75d1f2303
>>>
>>>  --
>>> 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 rubyonrails-talk@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> rubyonrails-talk+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Pagarbiai,
>> Gintautas
>>
>> --
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Panayotis Matsinopoulos
> *P.S.:* I am sending SMS over the WEB using Rayo SMS 
> *E-mail*: panayo...@matsinopoulos.gr
> *Site:* http://www.matsinopoulos.gr
> *Mobile:* +30 697 26 69 766
> *Skype Id: *panayotis.matsinopoulos
> *Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
> *Twitter:* http://www.twitter.com/pmatsino
> *LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
> *Github*: https://github.com/pmatsinopoulos
> *Rubygems:* https://rubygems.org/profiles/55099
> *CodeProjec

Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-15 Thread Gintautas Šimkus
No problem. I deduce you are Greek. And that you tried to advocate working
in Greece is similar to working in DE or US, which is not that case at this
point.

I mean people should decide by themselves where to work. And working in
Greece (or any other country) is OK with me. I was just pointing out that
the same job proposal could be crap under certain circumstances.

I am simply for telling people where they'd be working for right off. You
tried to defend Greece as a viable option. It might be, I don't know, but
relocating there would pose serious questions for an informed applicant.

You know where there is high risk, there is also an opportunity. So Greece
is OK, again, in my book, but letting people know whether they'd be working
in Beirut or NY could be a page turner for most.

2012/9/15 Panayotis Matsinopoulos 

>
>
> On Sat, Sep 15, 2012 at 12:39 PM, Gintautas Šimkus wrote:
>
>> Not sure if you aware of it or not but Greece has a high chance of going
>> bankrupt. So that maybe where the concerns come from. Blue sea is nice when
>> you can live in the country w/o a good chance for your company to be
>> nationalized, drop in value, or start paying you in some bogus currency
>> which they've been printing 24/7 for 3 months (= little real value).
>>
>
> @Gintautas Ah ok. Thanks for telling me that. You may also need to
> find ways to improve your sense of humor.
>
> BR
> Panayotis
> P.S. I am working for a Greek company that has 200% sales growth every
> year the last 3 years. We are 80 people, only, and we now have 130M Euro in
> sales by end of August, only for 2012. Hope we reach 200M Euro by end of
> year. Believe me, that we have good ways to circumvent any bankruptcy.
> Also, believe me, that rumors is something that we do not base our business
> on.
>
>
>
>
>
>> 2012/9/14 Panayotis Matsinopoulos 
>>
>>> Peter ... you are absolutely right.
>>>
>>> BTW1, Greece is very-very-very cheap and has fantastic weather and
>>> beautiful sea and beaches.
>>> :-)
>>>
>>> BTW2. I am certain that this job cannot come from a Greek company. Greek
>>> companies rarely use Ruby on Rails. Most of them use java technologies and
>>> .NET
>>>
>>> Panayotis
>>>
>>>
>>> On Fri, Sep 14, 2012 at 1:21 PM, Peter Hickman <
>>> peterhickman...@googlemail.com> wrote:
>>>
 And this is why people complain about job ad on this list!

 No location (I will not relocate to Greece for this job)
 No salary (Without the location I have no idea as to the cost of
 living and cannot judge the value of the package)
 No company details (I have no interest in working for another "me too"
 groupon clone)

 Without these details people who are unsuitable for the post will
 apply and waste your time and people who are suitable will ignore it
 because it is clearly a fishing expedition - you do not really have a
 post available you just want a bunch of CVs to pester people with.

 --
 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 rubyonrails-talk@googlegroups.com.
 To unsubscribe from this group, send email to
 rubyonrails-talk+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



>>>
>>>
>>> --
>>> Panayotis Matsinopoulos
>>> *P.S.:* I am sending SMS over the WEB using Rayo SMS
>>> *E-mail*: panayo...@matsinopoulos.gr
>>> *Site:* http://www.matsinopoulos.gr
>>> *Mobile:* +30 697 26 69 766
>>> *Skype Id: *panayotis.matsinopoulos
>>> *Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
>>> *Twitter:* http://www.twitter.com/pmatsino
>>> *LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
>>> *Github*: https://github.com/pmatsinopoulos
>>> *Rubygems:* https://rubygems.org/profiles/55099
>>> *CodeProject:* http://www.codeproject.com/Members/PanayotisMatsinopoulos
>>> *ODesk Profile:* https://www.odesk.com/users/~~c84135e75d1f2303
>>>
>>>  --
>>> 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 rubyonrails-talk@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> rubyonrails-talk+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Pagarbiai,
>> Gintautas
>>
>> --
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Panayotis Matsinopoulos
> *P.S.:* I am sending SMS over the WEB using Rayo SMS 
> *E-mail*: panayo...@matsinopoulos.gr
> *Site:* http://www.m

Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-15 Thread Panayotis Matsinopoulos
On Sat, Sep 15, 2012 at 12:39 PM, Gintautas Šimkus wrote:

> Not sure if you aware of it or not but Greece has a high chance of going
> bankrupt. So that maybe where the concerns come from. Blue sea is nice when
> you can live in the country w/o a good chance for your company to be
> nationalized, drop in value, or start paying you in some bogus currency
> which they've been printing 24/7 for 3 months (= little real value).
>

@Gintautas Ah ok. Thanks for telling me that. You may also need to find
ways to improve your sense of humor.

BR
Panayotis
P.S. I am working for a Greek company that has 200% sales growth every year
the last 3 years. We are 80 people, only, and we now have 130M Euro in
sales by end of August, only for 2012. Hope we reach 200M Euro by end of
year. Believe me, that we have good ways to circumvent any bankruptcy.
Also, believe me, that rumors is something that we do not base our business
on.





> 2012/9/14 Panayotis Matsinopoulos 
>
>> Peter ... you are absolutely right.
>>
>> BTW1, Greece is very-very-very cheap and has fantastic weather and
>> beautiful sea and beaches.
>> :-)
>>
>> BTW2. I am certain that this job cannot come from a Greek company. Greek
>> companies rarely use Ruby on Rails. Most of them use java technologies and
>> .NET
>>
>> Panayotis
>>
>>
>> On Fri, Sep 14, 2012 at 1:21 PM, Peter Hickman <
>> peterhickman...@googlemail.com> wrote:
>>
>>> And this is why people complain about job ad on this list!
>>>
>>> No location (I will not relocate to Greece for this job)
>>> No salary (Without the location I have no idea as to the cost of
>>> living and cannot judge the value of the package)
>>> No company details (I have no interest in working for another "me too"
>>> groupon clone)
>>>
>>> Without these details people who are unsuitable for the post will
>>> apply and waste your time and people who are suitable will ignore it
>>> because it is clearly a fishing expedition - you do not really have a
>>> post available you just want a bunch of CVs to pester people with.
>>>
>>> --
>>> 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 rubyonrails-talk@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> rubyonrails-talk+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>> --
>> Panayotis Matsinopoulos
>> *P.S.:* I am sending SMS over the WEB using Rayo SMS
>> *E-mail*: panayo...@matsinopoulos.gr
>> *Site:* http://www.matsinopoulos.gr
>> *Mobile:* +30 697 26 69 766
>> *Skype Id: *panayotis.matsinopoulos
>> *Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
>> *Twitter:* http://www.twitter.com/pmatsino
>> *LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
>> *Github*: https://github.com/pmatsinopoulos
>> *Rubygems:* https://rubygems.org/profiles/55099
>> *CodeProject:* http://www.codeproject.com/Members/PanayotisMatsinopoulos
>> *ODesk Profile:* https://www.odesk.com/users/~~c84135e75d1f2303
>>
>>  --
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Pagarbiai,
> Gintautas
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Panayotis Matsinopoulos
*P.S.:* I am sending SMS over the WEB using Rayo SMS 
*E-mail*: panayo...@matsinopoulos.gr
*Site:* http://www.matsinopoulos.gr
*Mobile:* +30 697 26 69 766
*Skype Id: *panayotis.matsinopoulos
*Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
*Twitter:* http://www.twitter.com/pmatsino
*LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
*Github*: https://github.com/pmatsinopoulos
*Rubygems:* https://rubygems.org/profiles/55099
*CodeProject:* http://www.codeproject.com/Members/PanayotisMatsinopoulos
*ODesk Profile:* https://www.odesk.com/users/~~c84135e75d1f2303

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Array value to get except first two values

2012-09-15 Thread Carlos Mathiasen
[1,2,3,4].select{|n| ![1,2].include? n}

:-)

 ---
Send from my cellphone

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Array value to get except first two values

2012-09-15 Thread Maddy
Hi folks,

In an array value i need to find except first two values,

example:
[1,2,3,4,5,6,7,8 ]

in that i need to get values except [1,2].

How can i get it from this array??

please advise

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/10r_aye1o4IJ.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Re: ruby server chrashes

2012-09-15 Thread Frederick Cheung
On Friday, September 14, 2012 8:23:06 PM UTC+1, roelof wrote:
>
> Hello, 
>
> When I do rails server it chrashed with this ouput : 
> http://pastebin.com/DJ21qC5h
>
> Anyone a idea what is the cause of this problem and how to solve this ?
>
>  
If reinstalling the gems in a clean gemset doesn't work then It's usually 
an environmental thing, for example if you use macports its sometimes 
possible for one version of a library to be picked up while compiling ruby 
(or a gem) but a different version is used when ruby actually runs. 
Unfortunately working out exactly what is wrong is a bit hit and miss

Fred

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/c_DRsZyzYskJ.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Lottery Number Matching

2012-09-15 Thread Gintautas Šimkus
Which university? ;)

2012/9/14 Samir 

> Can any body please help me to solve this?
>
> Create a lottery app which will take a number as parameter and there will
> be a set of number from 0 to n random number every time.
> If the given number matches the random array[0] number by the program,
> show a message you won the loterry.
> If the given number matches the random array[1] number by the program,
> show a message you are second.
>
>  --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/7SgkoBTeIQgJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-15 Thread Gintautas Šimkus
Not sure if you aware of it or not but Greece has a high chance of going
bankrupt. So that maybe where the concerns come from. Blue sea is nice when
you can live in the country w/o a good chance for your company to be
nationalized, drop in value, or start paying you in some bogus currency
which they've been printing 24/7 for 3 months (= little real value).

2012/9/14 Panayotis Matsinopoulos 

> Peter ... you are absolutely right.
>
> BTW1, Greece is very-very-very cheap and has fantastic weather and
> beautiful sea and beaches.
> :-)
>
> BTW2. I am certain that this job cannot come from a Greek company. Greek
> companies rarely use Ruby on Rails. Most of them use java technologies and
> .NET
>
> Panayotis
>
>
> On Fri, Sep 14, 2012 at 1:21 PM, Peter Hickman <
> peterhickman...@googlemail.com> wrote:
>
>> And this is why people complain about job ad on this list!
>>
>> No location (I will not relocate to Greece for this job)
>> No salary (Without the location I have no idea as to the cost of
>> living and cannot judge the value of the package)
>> No company details (I have no interest in working for another "me too"
>> groupon clone)
>>
>> Without these details people who are unsuitable for the post will
>> apply and waste your time and people who are suitable will ignore it
>> because it is clearly a fishing expedition - you do not really have a
>> post available you just want a bunch of CVs to pester people with.
>>
>> --
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
> --
> Panayotis Matsinopoulos
> *P.S.:* I am sending SMS over the WEB using Rayo SMS 
> *E-mail*: panayo...@matsinopoulos.gr
> *Site:* http://www.matsinopoulos.gr
> *Mobile:* +30 697 26 69 766
> *Skype Id: *panayotis.matsinopoulos
> *Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
> *Twitter:* http://www.twitter.com/pmatsino
> *LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
> *Github*: https://github.com/pmatsinopoulos
> *Rubygems:* https://rubygems.org/profiles/55099
> *CodeProject:* http://www.codeproject.com/Members/PanayotisMatsinopoulos
> *ODesk Profile:* https://www.odesk.com/users/~~c84135e75d1f2303
>
>  --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Pagarbiai,
Gintautas

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: Devise sign up with paypal

2012-09-15 Thread Gintautas Šimkus
I mean come on! FFS! You want to do something that the gem that provides
immense possibilities for you does not do. Just right an extention or
whatever. You can't expect the mailing list to do your job. My personal
opinion.


2012/9/15 Thomas B. 

> https://github.com/dwilkie/devise_paypal
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Pagarbiai,
Gintautas

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: "belongs_to" aliases

2012-09-15 Thread Panayotis Matsinopoulos
You may be right, but I have found a lot of other posts on Internet that
they complain about "belongs_to". It does not bear the correct meaning for
all cases. For example:

class Product

belongs_to :status

end

.Awful. No, the Product does not "belong" to a Status. It "has_a"
status.

Also, "belongs" usually means that a "composition" relationship, such that
if Status were to be removed, the corresponding Product would have to be
removed too.

Another example:

class Product

belongs_to :type

end

Awful again. The product Types preexist the Products and a Product does
not belong to a type. "is of" a type.

Certainly, the "belongs_to" as a DSL does not describe the domain on the
particular cases.

Thanks for letting me know that my workaround will work. I will have the
second thoughts on whether to use or not. I have read the article by Dave.
Thanks for that reference too.


On Fri, Sep 14, 2012 at 12:59 PM, Frederick Cheung <
frederick.che...@gmail.com> wrote:

>
>
> On Friday, September 14, 2012 8:24:53 AM UTC+1, Panayotis Matsinopoulos
> wrote:
>>
>> Hi,
>>
>> Since "belongs_to" does not actually reflect (as an English wording) the
>> real association that one object might have to another, I was thinking
>> about aliasing it using the following code:
>>
>> class ActiveRecord::Base
>>   class << self
>> alias :refers_to :belongs_to
>> alias :is_of :belongs_to
>> alias :has_a :belongs_to
>>   end
>> end
>>
>> Well I think that would work, but personally I wouldn't - I think you're
> sacrificing readability of the source (people have to know/remember about
> your extensions) just to make it sound better in english (has_a in
> particular muddies the water further between has_one & belongs_to). Dave
> Thomas articulated this better than I could a while ago:
> http://pragdave.blogs.pragprog.com/pragdave/2008/03/the-language-in.html
>
>
> Fred
>
>>
>>  --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/PiHuxshy4Y0J.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Panayotis Matsinopoulos
*P.S.:* I am sending SMS over the WEB using Rayo SMS 
*E-mail*: panayo...@matsinopoulos.gr
*Site:* http://www.matsinopoulos.gr
*Mobile:* +30 697 26 69 766
*Skype Id: *panayotis.matsinopoulos
*Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
*Twitter:* http://www.twitter.com/pmatsino
*LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
*Github*: https://github.com/pmatsinopoulos
*Rubygems:* https://rubygems.org/profiles/55099
*CodeProject:* http://www.codeproject.com/Members/PanayotisMatsinopoulos
*ODesk Profile:* https://www.odesk.com/users/~~c84135e75d1f2303

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-15 Thread Panayotis Matsinopoulos
Peter ... you are absolutely right.

BTW1, Greece is very-very-very cheap and has fantastic weather and
beautiful sea and beaches.
:-)

BTW2. I am certain that this job cannot come from a Greek company. Greek
companies rarely use Ruby on Rails. Most of them use java technologies and
.NET

Panayotis


On Fri, Sep 14, 2012 at 1:21 PM, Peter Hickman <
peterhickman...@googlemail.com> wrote:

> And this is why people complain about job ad on this list!
>
> No location (I will not relocate to Greece for this job)
> No salary (Without the location I have no idea as to the cost of
> living and cannot judge the value of the package)
> No company details (I have no interest in working for another "me too"
> groupon clone)
>
> Without these details people who are unsuitable for the post will
> apply and waste your time and people who are suitable will ignore it
> because it is clearly a fishing expedition - you do not really have a
> post available you just want a bunch of CVs to pester people with.
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Panayotis Matsinopoulos
*P.S.:* I am sending SMS over the WEB using Rayo SMS 
*E-mail*: panayo...@matsinopoulos.gr
*Site:* http://www.matsinopoulos.gr
*Mobile:* +30 697 26 69 766
*Skype Id: *panayotis.matsinopoulos
*Facebook: *http://www.facebook.com/PanayotisMatsinopoulos
*Twitter:* http://www.twitter.com/pmatsino
*LinkedIN:* http://www.linkedin.com/in/panayotismatsinopoulos
*Github*: https://github.com/pmatsinopoulos
*Rubygems:* https://rubygems.org/profiles/55099
*CodeProject:* http://www.codeproject.com/Members/PanayotisMatsinopoulos
*ODesk Profile:* https://www.odesk.com/users/~~c84135e75d1f2303

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Lottery Number Matching

2012-09-15 Thread Samir
Can any body please help me to solve this?

Create a lottery app which will take a number as parameter and there will 
be a set of number from 0 to n random number every time. 
If the given number matches the random array[0] number by the program, show 
a message you won the loterry.
If the given number matches the random array[1] number by the program, show 
a message you are second.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/7SgkoBTeIQgJ.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] New to Ruby

2012-09-15 Thread Samir
Hi Friends. I am extremely new to Ruby. can you please suggest me how to 
proceed to grab this in a short span of time...

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/okTU26dZVjsJ.
For more options, visit https://groups.google.com/groups/opt_out.