rubyonrailsin

A Ruby and Rails talk

Sunday, March 14, 2010

Re: [spree-user] Moving from Edge to 0.10. Best practice?

by rubyonrailsin 0 comments
On Sun, Mar 14, 2010 at 8:47 PM, Mike <mikehorn1@gmail.com> wrote:
> I've been building an app with Spree Edge.  We're developing some
> extensions in connection with it.  Now that stable 0.10 has been
> released, we're going to stick with the stable release.
>
> I'm not sure what makes the most sense in terms of how we run Spree
> going forward.  I want to maintain the control over my app that I have
> by not running it as a gem.  But I'm assuming it's easier to get
> patches and small updates to the stable branch when running in gem
> mode.  What's the best practice for developers who are actively
> working with the code?
>
> Thanks,
> Mike

Personally, I keep my own fork of spree, and base my stores on clones
of that. When I see changes that interest me (or enough of them pile
up) I then pull from railsdog, test my store, push to my fork, and
then update my deployment.

--Christopher

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

[Rails] Undefined method when creating a has_many relationship

by rubyonrailsin 0 comments
My first attempt at working with a new has_many relationship is
throwing an error in the view when I try to create a new 'rcost'
instance linked to a 'resource' (each resource can have multiple
costs):

"undefined method `rcosts_path' for #<ActionView::Base:0x715bc60>"

Here is the view (new.html.erb) code that appears to be causing the
error (I do not reference rcosts_path anywhere in the view):

<% form_for(@rcost) do |f| %>

Here are my model declarations:

class Resource < ActiveRecord::Base
has_many :rcosts
end

class Rcost < ActiveRecord::Base
belongs_to :resource
end

Here is my route declaration:

map.resources :resources, :has_many => :rcosts

I first tried the build method in my rcosts_controller:

@rcost = @resource.rcosts.build

Then tried new and manually setting the foreign key:

@rcost = @resource.rcosts.new
@rcost.resource_id = @resource.id

But neither worked.

I'd really appreciate it if someone could tell me what is going wrong
and how I can create a new rcost instance associated with an existing
resource instance.

Thanks in advance!
Mark

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Error running mysql in ror

by rubyonrailsin 0 comments
I just upgraded rails 2.3.5 and I got the error when I tried to run my application.

Here few information:
- My OS Mac Tiger
- Rails version 2.3.5
- Ruby version ruby 1.8.6
- gem version 1.3.6

- I run command: which rails
  >> /usr/local/bin/rails

- I run command: which ruby
  >> /usr/local/bin/ruby
 
- I run command: which mysql
  >> /usr/local/mysql/bin/mysql

I spent more than 7 hours to figure out and tried different things, but I still got error
I use this command, and still not working
sudo gem install mysql -v 2.7 -- --with-mysql-include=/usr/local/mysql/include/mysql --with-mysql-lib=/usr/local/mysql/bin/mysql --with-mysql config=/usr/local/mysql/bin/mysql_config

or

sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Please help!!!

Yudi

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

[spree-user] Paypal Express

by rubyonrailsin 0 comments
Hi,

After giving up on a Payment Gateway integration, I have moved onto
trying to setup up Paypal Express integration.

To clarify, is the Railsdog PPE (http://github.com/railsdog/spree-
paypal-express
) extension fully working with Spree 0.10?

I am aware there are a few branches of this extension, is one of these
preferable over the other?

Really appreciate a pointer,

Cameron

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

[spree-user] Moving from Edge to 0.10. Best practice?

by rubyonrailsin 0 comments
I've been building an app with Spree Edge. We're developing some
extensions in connection with it. Now that stable 0.10 has been
released, we're going to stick with the stable release.

I'm not sure what makes the most sense in terms of how we run Spree
going forward. I want to maintain the control over my app that I have
by not running it as a gem. But I'm assuming it's easier to get
patches and small updates to the stable branch when running in gem
mode. What's the best practice for developers who are actively
working with the code?

Thanks,
Mike

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

Re: [Rails] Re: Linkedin plugin

by rubyonrailsin 0 comments
Thank for your help.

Yudi Soesanto


On Sun, Mar 14, 2010 at 11:53 AM, Josiah Ivey <josiah.ivey@gmail.com> wrote:
There is the Linkedin gem by Wynn Netherland:

http://github.com/pengwynn/linkedin

On Mar 14, 9:52 am, soesa...@gmail.com wrote:
> Is there any plugins to connect to linkedin? If not, do you have a sample rails code to connect to linkedin?
>
> the goal I want to be able to update linkedin "share ideas, articles, quotes, and more" through my application.
>
> Any thought?
>
> Yudi
> Sent from my AXIS Worry Free BlackBerry® smartphone

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

Re: [Rails] newbie seek for help about paperclippolymorph

by rubyonrailsin 0 comments
thank you Christophe, it's really helpful, and it works for me.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

Re: [Rails] Link as a link AND as a function

by rubyonrailsin 0 comments
Quoting Michael Murillo <lists@ruby-forum.com>:
> Hi there,
>
> I am relatively new to Rails and I am trying to do a fairly common task.
> I have a page that displays a series of links that go to offsite URLS.
> Next to each link is a counter that shows how many times that link has
> been clicked-through. I would like to be able to have the user click on
> a the link, be directed to the links address, AND at the same time, have
> a function create and add a "click-through" to the "clicks" database.
>
> I was reading about the link_to_function helper but that doesn't seem to
> be quite what I want, but then again, I may not be understanding it
> completely.
>

Link to a function like the following. It makes a GET request to the server
and opens a new window to the url. The link_to also follows.

HTH,
Jeffrey

<%= link_to_function truncate(article.title, 60),
"clickThru('#{article.url}','#{article[:id]}', 'click')",
:title => article.feed.title, :href => article[:id] %>


function clickThru(url, id, verb) {
new Ajax.Request('/articles/'+id+'/'+verb,
{asynchronous:true, evalScripts:true, method:'get'});
window.open(url);
}

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: Coding a migration to change a column's attribute

by rubyonrailsin 0 comments
Hi Craig,

As I mentioned to Frederick, I've got both the DSL-style and C-Style
for change_column working after a bunch of stumbles. I expect to be
much better with future migrations I code. In that context, I'm sure
the "--trace" option you pointed out will be very helpful. Thanks for
taking the time to look in on this problem.

Best wishes,
Richard

On Mar 13, 7:57 pm, Craig White <craigwh...@azapple.com> wrote:
> On Sat, 2010-03-13 at 15:45 -0800, Frederick Cheung wrote:
>
> > On Mar 13, 11:13 pm, RichardOnRails
> > <RichardDummyMailbox58...@USComputerGurus.com> wrote:
>
> > > class ChangeExpenseTblAmountCol < ActiveRecord::Migration
> > >   def self.up
> > >       change_column :expense, :amount, :decimal :precision =>
> > > 10, :scale => 2
> > >   end
>
> > The first parameter is the table name ( ie plural) and you're missing
> > a comma towards the end.
>
> ----
> in the thought that give a man a fish and feed him for a day and teach a
> man to fish, he can feed himself the rest of his life...
>
> rake SOME_COMMAND --trace
>
> gives you more meaningful output on what went wrong
>
> Craig
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: Coding a migration to change a column's attribute

by rubyonrailsin 0 comments
Hi Frederick,

Thanks for taking the time to look at my newbie code. I now have both
styles:
change_column :expenses, :amount, :decimal, :precision =>
10, :scale => 2 # DSL-style
change_column( "expenses", "amount", "decimal(10,
2)" ) # C-style
working. Thank you for pointing the things I was missing when I
fumbled here.

I wont have any more problems in this area. But I'm moving on to a
new area now :-)

Best wishes,
Richard

On Mar 13, 7:45 pm, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Mar 13, 11:13 pm, RichardOnRails
>
> <RichardDummyMailbox58...@USComputerGurus.com> wrote:
>
> > class ChangeExpenseTblAmountCol < ActiveRecord::Migration
> >   def self.up
> >       change_column :expense, :amount, :decimal :precision =>
> > 10, :scale => 2
> >   end
>
> The first parameter is the table name ( ie plural) and you're missing
> a comma towards the end.
>
> 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: Problem indexing add Simple Table Inherance

by rubyonrailsin 0 comments
Matt Jones wrote:
> On Mar 11, 4:50�am, John Smith <li...@ruby-forum.com> wrote:
>> I have a simple table inherance, with an upper class GeneralElement. A
>> class that inherits is Activity:
>> class Activity < GeneralElement
>> ...
>> end
>>
>> The GeneralElement table is very big (about 2.000.000 rows!). Other
>> classes that inherit from GeneralElement return queries very fast, but
>> Activity.last is very slow. I have added indexes to id and type, but it
>> has no effect. What can I do?
>
> You may want to grab the query that Activity.last is using, and try
> running it through 'EXPLAIN' to see what it's looking for. Have you
> defined an order (via default_scope, for instance) on Activity? You
> might need to have an index on that field together with 'type' to get
> right behavior.
>
> --Matt Jones

I have added an index to the type column; but maybe it's possible to add
a special index to both the id and type column at the same time. How
could I do this?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Link as a link AND as a function

by rubyonrailsin 0 comments
Hi there,

I am relatively new to Rails and I am trying to do a fairly common task.
I have a page that displays a series of links that go to offsite URLS.
Next to each link is a counter that shows how many times that link has
been clicked-through. I would like to be able to have the user click on
a the link, be directed to the links address, AND at the same time, have
a function create and add a "click-through" to the "clicks" database.

I was reading about the link_to_function helper but that doesn't seem to
be quite what I want, but then again, I may not be understanding it
completely.

Does anyone have any method for doing anything similar in their apps? I
would love an help or advice.

Thank you in advance.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] determining where a function is called from

by rubyonrailsin 0 comments
I have a function that I use in my code in a number of places. It does
some database lookup, processes it and returns some content to display.
However, it needs to know where it was called from so that it can set up
some return links. Currently I call it from a controller like this:

@content = Content.getContent( "Hello from ", controller_name(),
action_name() )

I want to dry up the code and get rid of the controller and action calls
and move it to the model where it belongs, but the controller_name and
action_name functions are not available in the model.

My question, is there any way for the code in the model to discover
where the function was called from so that that information can be made
available to the function without having to explicitly pass it.

Hope someone can help,
-- Will

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: validates_presence_of :parent_id stopping save

by rubyonrailsin 0 comments
Hi Anthony, thanks.

I'm not using the rails-supplied nested attributes methods here, though
maybe i should. I'm effectively hand-rolling my own, so i create a
question and some associated objects (eg a grading in this case) at the
same time, from a single form. When i drop the validation on
Grading#question_id then it works fine. I'm just a little puzzled about
the best way to go about validating question_id, since the default way
seems to stop me building a question and gradings at once.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: validates_presence_of :parent_id stopping save

by rubyonrailsin 0 comments
Rob Lacey wrote:
> I'd say the best way to deal with this is never validate for a
> association_id
>
> #validates_presence_of :question_id
> validates_presence_of :question
>
> would be better.

Hi Rob!

I played with this already, and got a surprising result:

>>@question = Question.new(attributes)
=><a question>
>>@grading = @question.gradings.build(other_attributes)
=><a grading>
>>@grading.question
=>nil

This surprised me because i thought that the use of build set up the
association both ways, ie in both objects, so that even though @grading
had no question_id it 'knew' that it was associated with @question. I
must admit that this aspect of rails (ie associations that have been
built but not saved yet) is something that i've always found a bit
magical and hence unpredicatable.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: install rails3 --pre on snow leopard w ruby 1.8.7 -- memcache_client gem problems

by rubyonrailsin 0 comments
No this was regular (not j-) ruby, 1.8.7.
I think my problem was related to rubygems, at the time I still had
1.3.5.

Later I installed rvm and, again using ruby 1.8.7, I had more luck
doing a fresh start by first updating rubygems to 1.3.6 and then
running only gem install rails --pre, which automatically grabbed all
the gems needed. This way it grabbed memcache_client 1.7.8 (not 1.8.0)
and the whole thing worked without a hitch.

So I'd replace the advice listed on the guides with:
1) update rubygems to 1.3.6 (gem update --system #or whatever
equivalent you need to do so)
2) then do: gem install rails --pre

With ruby 1.8.7 on snow leopard, that's all it needs.

On Mar 14, 2:56 pm, Ray Krueger <raykrue...@gmail.com> wrote:
> > Following the indications listed here:http://weblog.rubyonrails.org/2010/2/5/rails-3-0-beta-release/
>
> > in other words:
> >  sudo gem install tzinfo buildermemcache-clientrack rack-test rack-
> > mount erubis mail text-format thor bundler i18n
> >  sudo gem install rails --pre
>
> > The first line installed gems without complaint. When I tried the
> > second (sudo gem install rails --pre), it complains:
> >  ERROR:  Error installing rails:
> >         activesupport requiresmemcache-client(~> 1.7.5, runtime)
>
> Are you using jruby by chance?
> Have a look at `gem env`
> If it shows "RUBYGEMS VERSION: 1.3.3" and a gem path involving Jruby
> you'll run into trouble.
>
> I just dusted off my old ubuntu box and started installing rails 3 and
> ran into this. If it is Jruby, clean up your paths to use MRI or maybe
> setup RVM(Ruby Version Manager).

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[spree-user] User Personalisation of Products

by rubyonrailsin 0 comments
I'm implementing personalisation for products, where a user can
personalise a product with text they supply. (I talked about this on
here a few weeks ago, but didn't get much correspondance)

After failing with this, I'm going back to the beginning ans I'm
trying to figure the logic I will need to implement this functionality
(and I would expect to release this as a plugin when I have developed
it).

I would appreciate some comments on my proposed logic, as stated
below.

======================================================
Each variant has many pers_options

pers_options stores a name, title and length (all of which will be
entered through the admin interface).

The product view will render each pers_option associated with the
variant.

Upon adding the product to the cart, the data input by the user in the
view is stored in a pers_details table, and the created line_item will
have many pers_details.
======================================================

One thing that I am worried about is a line_item is only ever created
once for a variant (per order) and then has its quantity incremented
if a user wants more. Surely this means that I can't store different
personalisation details for any variant that has a quantity of more
than 1?

I will look in to the implementation details once I am sure my logic
is correct.

(If I can't figure this out, I might need to resort to using Magento,
which has this functionality built-in. Wouldn't be my preferred
option...)

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

[Rails] Integrating beast in existing rails app (database conflict).

by rubyonrailsin 0 comments
Hi,

I want to integrate the beast forums in an existing rails app, but
there is a database conflict. I already have a "post" model for the
blog and beast requires it. How do I eliminate the problem.

Regards,
Paresh

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[spree-user] Re: Third party Payment Gateway on edge

by rubyonrailsin 0 comments
Hi Ajay,

If you manage to accomplish this would appreciate a write-up of some
description - after talking to a couple of providers in NZ, they all
strongly "suggest" I use a redirect to a hosted page, curious as to
how you work it out,

Regards,

Cameron

On Mar 10, 11:34 am, BryanMTL <bryan...@gmail.com> wrote:
> Hi Ajay,
>
> I recently completed something for this. I'm just reviewing it with
> the client and I believe he has plans on open-sourcing it.
>
> On Mar 9, 3:01 pm, Ajay CB <ajay...@gmail.com> wrote:
>
> > I am looking at implementing a new Payment Gateway on spree edge.
>
> > Requirement is to do a client side redirect to the payment gateway
> > (where the payment is made) and on successful completion - i.e
> > redirect to the success url, the order gets confirmed (checkout
> > complete) on failure, make the customer retry the payment (basically
> > another url endpoint for failure).
>
> > On the admin side, pretty much everything is manual - it sucks but I
> > am stuck with this gateway. The workflow to settle a payment is
> > closest to cheques. i.e just finalizing the payment will suffice.
>
> > Is there any existing payment gateway that works on this model, that I
> > can look at for an example?
> > If not what is the best way of going about this on the edge, given the
> > payment gateway refactoring.
>
> > Any suggestions/pointers will be of great help.
>
> > Thanks!
> > -Ajay
>
>

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

Re: [Rails] Noob: database selection question

by rubyonrailsin 0 comments
On Fri, Mar 12, 2010 at 8:40 PM, Len Sumnler <lists@ruby-forum.com> wrote:

> The book seems to suggest that development should be done using sqlite3
> and that the testing and/or production can be switched to some other
> database.  Now it does not say you have to do it this way and even gives
> instructions to setup your initial development using MySql.
>
> My question is - is this how most people/organizations do it or do they
> just use the same database from development through production.

I don't know about "most" but my preference is to use the same DB
all the way through. Sometime's it not practical, so...

> I would think using different databases could lead to errors due to
> database quarks in the your coded application.

Yep, it happens. At the least you should have a staging server with
an environment identical to production for your final testing.

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [Rails] A Unique Ruby on Rails Opportunity

by rubyonrailsin 0 comments
Hi,

Sending you my updated resume for ROR developer
On 10/03/2010, Priyanka Dayalan <pday23@gmail.com> wrote:
> Passionate Java Developer / Ruby on Rails/ Agile Environment (Perm
> position)
>
>
> Top $$$ on offer
> Central Location
> Fun and Challenging role
>
>
> We are looking for a strong, passionate developer, specializing in
> Java Development to join a dynamic, fun, energetic team. You will
> need to have strong ruby on rails development experience , with an
> overall experience level of 6-9 years.
>
>
> As a display of passion for the work you do, to be a star for this
> role, you will also have a blog to show for and be part of a user
> group. Your passion will also shine through your strong technical
> skill set in Java and Ruby on rails. It is also important that you
> have experience working in an Agile style environment where you would
> have been involved in working on a large scale, high traffic website.
> This role involves content manipulation and thorough knowledge of a
> content management system.
>
>
> Requirements: 6+ years experience
> - Ruby on Rails
> - Java
> - Agile Environment
> - Large scale, high traffic website
>
>
> You would also have:
> - Presence online
> - A blog
> - Be a part of a IT related user group
> - Degree qualification in IT
> - Worked in a fast paced environment
>
>
>
> This is a rare opportunity for a strong developer to flaunt their
> skills and shine. A strong candidate will be rewarded with a
> competitive package.
>
>
> If this sound like you, then please do not hesitate to call Priyanka
> Dayalan 02 8211 0670 or send your CV to
> p.dayalancv@hamiltonblake.com.au
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


--
Regards,
Amit Kumar
Sr. Software Engrr
+91 8802149810
+91 9313455370
Blogsite: http://amitbaraik.blog.co.in/

This e-mail is confidential and may be legally privileged. If you are
not the intended recipient, please notify the sender immediately and
delete this e-mail.

?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: Linkedin plugin

by rubyonrailsin 0 comments
There is the Linkedin gem by Wynn Netherland:

http://github.com/pengwynn/linkedin

On Mar 14, 9:52 am, soesa...@gmail.com wrote:
> Is there any plugins to connect to linkedin? If not, do you have a sample rails code to connect to linkedin?
>
> the goal I want to be able to update linkedin "share ideas, articles, quotes, and more" through my application.
>
> Any thought?
>
> Yudi
> Sent from my AXIS Worry Free BlackBerry® smartphone

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] RESTful route question

by rubyonrailsin 0 comments
I have in routes.rb

map.resources :labs, :collection => { :group => :get }

which is working. But when I try to pass a parameter, e.g.

<% form_tag group_labs_path( :patient_id => @patient.id ), :method
=> :get do %>

The :patient_id isn't getting passed to the controller:

--- !map:HashWithIndifferentAccess
group: !map:HashWithIndifferentAccess
id: "5"
commit: Add Lab
action: group
controller: labs

Doing it the non-restful way works:

<% form_tag :action => :group, :patient_id => @patient.id, :method
=> :get do %>

--- !map:HashWithIndifferentAccess
group: !map:HashWithIndifferentAccess
id: "6"
commit: Add Lab
method: get
authenticity_token: ...
action: group
patient_id: "8"
controller: labs

Any idea how to configure the route to pass the parameter?

Many TIA,
Craig

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Linkedin plugin

by rubyonrailsin 0 comments
Is there any plugins to connect to linkedin? If not, do you have a sample rails code to connect to linkedin?

the goal I want to be able to update linkedin "share ideas, articles, quotes, and more" through my application.

Any thought?

Yudi
Sent from my AXIS Worry Free BlackBerry® smartphone

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: unit testing and activerecord (mis)behavior

by rubyonrailsin 0 comments
Rajinder Yadav wrote:
> In my active record model I have declared a 'before_save' callback, that
> populates other fields before saving the data. However I am finding all
> my unit test cases are breaking because it seems the 'before_save'
> callback is not getting called during a unit test run? In fact I have to
> provide the missing filed in unit test fixture yml file.
>
> How can I make the model behave the same in the unit test run as it does
> when I create and save a model object from the rails console?

ok the answer just came to me, what I need to do is a post rather than a
create on the model, make perfect sense!

--
Kind Regards,
Rajinder Yadav

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [Rails] validates_presence_of :parent_id stopping save

by rubyonrailsin 0 comments
Hi,

I'm not sure 100% what you're trying to do but the presence of question_id will not be there until the record has been saved. No?

And I'm not sure why you're doing this .... @grading = @question.gradings.build(more_attributes)

Shouldn't you have done a build before presenting your form if you have nested forms?

Maybe you could teach me something on what you're trying to do.

On 13 March 2010 16:54, Max Williams <lists@ruby-forum.com> wrote:
Hi. I'm using rails 2.3.4 and have this association between two of my
models.

Question
 has_many :gradings

Grading
 belongs_to :question

Grading has this validation:
 validates_presence_of :question_id

And this validation test is stopping me from doingg this, which i would
normally expect to work

@question = Question.new(attributes)
@grading = @question.gradings.build(more_attributes)
@question.save #fails because grading has no question_id

Now, i thought that this would work ok because (in my understanding) the
question is saved and then it saves it's built associated objects.  How
can i ensure this will work?  Do i need to drop the validation?  I'd
rather not if possible.

Grateful for any advice - max
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.




--
100% naturally selected. 0% designed.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

Re: [Rails] How can I conditional the validation on a model validation?

by rubyonrailsin 0 comments
If you're asking "how do I avoid the validation check on name and id when updating", then you should look at :on => params for validation.

validates_presence_of :id, :name, :on => :create

I think everything is clearly explained in the docs.



On 13 March 2010 19:20, Jorge alejandro Mendoza torres <lists@ruby-forum.com> wrote:
I'm making an application in Ruby, but I create records from text files,
which contain basic information to create a record. Then I modify the
records from the website, but now validating all fields.
What I do is validate some fields when the record is created from the
text file, and then validate the other fields which are filled from the
website.
Here's an example:

# My Table
Table name: Person
Fields: id, name, address, telephone, mail

The text file only contains the id and name. From the website, add the
other fields, but I also want to validate.

So I have the model:

class Person <ActiveRecord:: Base
 validates_presence_of: id
 validates_presence_of name
end

How can I make previous validation from the model?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.




--
100% naturally selected. 0% designed.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

[spree-user] Re: Each time cart link is hit an empty order is created

by rubyonrailsin 0 comments
By "vote" I mean any positive feedback without any conditions.
You're late, so use cron job until next release.

On Mar 13, 11:15 pm, st...@endpoint.com wrote:
> Hi,
>
> I'm not sure what you mean by "vote", but if it passes testing, then it
> has my vote.
>
> ~Steph
>
> > Ok, I see that this worries many people. So I improved behavior: now
> > when user click on the cart link, order will not create in db.
>
> > @All: See
> >http://railsdog.lighthouseapp.com/projects/31096-spree/tickets/1238
> > and test master branch of edge (0.10.99), and vote for cherry-pick
> > this to 0.10.0 if you are happy with new behavior. Today is last call.
>
> > On Mar 13, 6:18 am, Sean Schofield <s...@railsdog.com> wrote:
> >> I agree about the empty carts. If there is a nice patch for this I'm
> >> open to it. I can't remember offhand why we created the order when
> >> viewing the empty cart - I suspect it had to do with making things
> >> REST. To be honest, I wasn't really aware that we were creating empty
> >> orders when viewing carts - its been a while since I've thought about
> >> it.
>
> >> Creating an order for partial checkouts, however, is a feature. The
> >> data needs to be stored somewhere until the checkout is complete and
> >> IMO, there is nothing wrong with modeling this as an incomplete order.
>
> >> Sean Schofield
>
> >> -------------------------------------------
> >> Rails Dog LLC
> >> 2 Wisconsin Circle, Suite 700
> >> Chevy Chase, MD 20815
> >> voice: (301)560-2000
> >> -------------------------------------------
>
> >> On Fri, Mar 12, 2010 at 10:14 PM, Chris <r3ap3r2...@gmail.com> wrote:
> >> > It's a bug in my book. The number of empty carts doesn't tell me
> >> > anything. I can possibly see the value of tracking the ones with
> >> > something in them (especially if it's tied to a user and they have the
> >> > ability to come back to it later, kind of like a wish list), but plain
> >> > empty carts in the database = bug.
>
> >> > The possible exception would be if the user added a product to the
> >> > cart and then subsequently removed the item. At that point the empty
> >> > cart does tell me something. But as it currently is, I don't know if
> >> > someone just clicked the link which auto created an empty cart, or if
> >> > the user put something in their cart, and then changed their mind.
>
> >> > My $0.02.
> >> > +1 for bug
> >> > -Chris
>
> >> > On Sat, Mar 13, 2010 at 12:00 PM, <st...@endpoint.com> wrote:
> >> >> Hi,
>
> >> >> Will you accept patches for this?
>
> >> >> First, I think the solution of hiding the cart link when the cart is
> >> empty
> >> >> breaks the idea of good usability through consistency.
>
> >> >> Second, the idea of needing to create a cronjob to address bad data
> >> is
> >> >> just silly. The bad data shouldn't be created in the first place.
>
> >> >> Another note is that the number of empty orders isn't the proper
> >> >> definition of an abandoned cart. A quick google on "what is abandoned
> >> >> cart" returned the following definition at
> >> >>http://multichannelmerchant.com/toolsofthetrade/abandoned_cart/.
> >> >> "An abandoned cart occurs when a shopper places something in their
> >> online
> >> >> shopping cart and then fails to make a purchase during that visit"
>
> >> >> So, the empty carts stored in the database won't have any information
> >> >> about the contents that were in the cart when the customer abandoned
> >> the
> >> >> site because, well, that cart is empty. There may be other entries in
> >> the
> >> >> database of carts with items which are true abandoned carts, but
> >> combining
> >> >> the two (full carts / abandoned and empty carts / abandoned) won't
> >> give
> >> >> the true abandoned cart rate. Furthermore, analytics should be set up
> >> to
> >> >> handle this anyways, in fact, this might be pretty trivial to set up
> >> with
> >> >> Google Analytics goal conversion and custom funnels.
>
> >> >> If I have time at some point, I will look into a patch for this,
> >> assuming
> >> >> it's a bug and not a "feature".
>
> >> >> ~Steph
>
> >> >>> The idea is to create an order during checkout in case you are
> >> >>> interested in the number and contents of abandoned orders. Roman is
> >> >>> correct that you purge them by cron.
>
> >> >>> Sean Schofield
>
> >> >>> -------------------------------------------
> >> >>> Rails Dog LLC
> >> >>> 2 Wisconsin Circle, Suite 700
> >> >>> Chevy Chase, MD 20815
> >> >>> voice: (301)560-2000
> >> >>> -------------------------------------------
>
> >> >>> On Fri, Mar 12, 2010 at 4:11 PM, Roman Smirnov <pom...@gmail.com>
> >> wrote:
> >> >>>>> Any thoughts?
>
> >> >>>> * Don't show 'Cart' link while cart is empty
> >> >>>> * Remove old, empty orders by cron
>
> >> >>>> On Mar 12, 6:12 pm, Sergei <s.n.koz...@gmail.com> wrote:
> >> >>>>> Hi guys,
>
> >> >>>>> I encountered a problem that must have been addressed by someone,
> >> but
> >> >>>>> I can't find where. I'm a newbie Spree user.
>
> >> >>>>> Each time someone hits the Cart link, an empty order gets created
> >> in
> >> >>>>> the database, which leaves me with hundreds of empty orders a day.
> >> I
> >> >>>>> guess that more logical would be actually creating an order at a
> >> >>>>> checkout, but I may miss something.
>
> >> >>>>> Any thoughts?
>
> >> >>>>> Cheers!
>
> >> >>>>> Sergei
> >> >>>>> writelesscode.com
>
> >> >>>> --
> >> >>>> You received this message because you are subscribed to the Google
> >> >>>> Groups "Spree" group.
> >> >>>> To post to this group, send email to spree-user@googlegroups.com.
> >> >>>> To unsubscribe from this group, send email to
> >> >>>> spree-user+unsubscribe@googlegroups.com.
> >> >>>> For more options, visit this group at
> >> >>>>http://groups.google.com/group/spree-user?hl=en.
>
> >> >>> --
> >> >>> You received this message because you are subscribed to the Google
> >> Groups
> >> >>> "Spree" group.
> >> >>> To post to this group, send email to spree-user@googlegroups.com.
> >> >>> To unsubscribe from this group, send email to
> >> >>> spree-user+unsubscribe@googlegroups.com.
> >> >>> For more options, visit this group at
> >> >>>http://groups.google.com/group/spree-user?hl=en.
>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> Groups "Spree" group.
> >> >> To post to this group, send email to spree-user@googlegroups.com.
> >> >> To unsubscribe from this group, send email to
> >> spree-user+unsubscribe@googlegroups.com.
> >> >> For more options, visit this group
> >> athttp://groups.google.com/group/spree-user?hl=en.
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> Groups "Spree" group.
> >> > To post to this group, send email to spree-user@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> spree-user+unsubscribe@googlegroups.com.
> >> > For more options, visit this group
> >> athttp://groups.google.com/group/spree-user?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Spree" group.
> > To post to this group, send email to spree-user@googlegroups.com.
> > To unsubscribe from this group, send email to
> > spree-user+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/spree-user?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

[Rails] Upgrading rails, ruby and gems

by rubyonrailsin 0 comments
Hi guys,

Is there any good documentation to upgrade rails, ruby and supported gems? I use mac tiger.
Also, what is the stable version of ruby?

Thanks,
ys

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

[Rails] Re: Oniguruma and Ultraviolet on Windows 7

by rubyonrailsin 0 comments
Hi amacgregor,

Any help would be greatly appreciated.

Could you explain to me, perhaps with some detail, how you got the gem
install oniguruma --platform--mingw32 to work?

I installed the devkit for Ruby 19 on Windows. I've used it to
successfully to get the RMagick gem working on 1.9 so it seems
perfectly capable of doing it.

I'm not sure what other steps I need to take for the oniguruma gem.

I typed the command directly at the command prompt but got errors.

I also typed the command in from the msys console. It gave me errors
too.

Do I need to download oniguruma in C or something first?

Sorry, I have very little experience with this.

Sunny

On Feb 27, 6:32 am, amacgregor <d...@allanmacgregor.com> wrote:
> Hi Frederick,
>
> I actually was able to install both ultraviolet and oniguruma with the
> following commands :
> gem install oniguruma --platform=mingw32
> gem install ultraviolet --platform=mingw32
>
> So know when I run gem list --local I see
>
> *** LOCAL GEMS ***
>
> actionmailer (2.3.5)
> actionpack (2.3.5)
> activerecord (2.3.5)
> activeresource (2.3.5)
> activesupport (2.3.5)
> git (1.2.5)
> hpricot (0.8.2)
> mysql (2.8.1)
> oniguruma (1.1.0)
> plist (3.1.0)
> rack (1.0.1)
> rails (2.3.5)
> rake (0.8.7)
> textpow (0.10.1)
> ultraviolet (0.10.2)
>
> But know I'm having a different problem running script/plugin install
> git://github.com/michaeledgar/harsh.git I always get Plugin not found:
> ["git://github.com/michaeledgar/harsh.git"]
>
> I get the same error with all the plugins I try to install, I also
> tried replacing git with http:// and adding a trailing slash at the
> end but with the same result.
>
> I also tried downloading the plugin manually and copying it to the
> vendor folder, but is not making the correct replacement and when I
> try to run the rake tasks from the plugin I get the following error
> output :
>
> rake harsh:theme:list
>
> (in O:/Personal/2010/allanmacgregor.com/RubyMineProjects/Snippy)
> C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/lib/oniguruma.rb:
> 1:in `requir
> e': 126: The specified module could not be found.   - C:/Ruby19/lib/
> ruby/gems/1.
> 9.1/gems/oniguruma-1.1.0-x86-mswin32/win/oregexp.so (LoadError)
>         from C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/lib/
> oniguruma.rb
> :1:in `<top (required)>'
>         from C:/Ruby19/lib/ruby/gems/1.9.1/gems/textpow-0.10.1/lib/
> textpow.rb:2:
> in `require'
>         from C:/Ruby19/lib/ruby/gems/1.9.1/gems/textpow-0.10.1/lib/
> textpow.rb:2:
> in `<top (required)>'
>         from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/lib/
> uv.rb:2:i
> n `require'
>         from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/lib/
> uv.rb:2:i
> n `<top (required)>'
>         from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/bin/
> uv:8:in `
> require'
>         from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/bin/
> uv:8:in `
> rescue in <top (required)>'
>         from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/bin/
> uv:3:in `
> <top (required)>'
>         from C:/Ruby19/bin/uv:19:in `load'
>         from C:/Ruby19/bin/uv:19:in `<main>'
>
> Any help getting this solved is highly appreciated
>
> Cheers!
>
> On Feb 27, 10:19 am, Frederick Cheung <frederick.che...@gmail.com>
> wrote:
>
> > On Feb 27, 3:02 am, amacgregor <d...@allanmacgregor.com> wrote:
>
> > > Hi I have been tying to install the followings gems in order to add
> > > code syntax highlighting to my application:
>
> > Do you have the correct compiler toolchain installed (from the log
> > looks like minggw32) ?
> > It also looks like someone forked ultraviolet and that the fork
> > (http://github.com/spox/ultraviolet) is ruby 1.9 compatible which
> > rather implies that the original isn't. It doesn't look like the fork
> > has any native code dependencies (onigurama is a regular express
> > library which has become the standard ruby one in ruby 1.9)
>
> > Fred
>
> > > -Oniguruma
> > > -Ultraviolet
> > > -Harsh
>
> > > Unfortunately I have been running into the the following errors when
> > > running "gem install oniguruma ultraviolet"
>
> > > Building native extensions.  This could take a while...
> > > ERROR:  Error installing oniguruma:
> > >         ERROR: Failed to build gem native extension.
>
> > > C:/Ruby19/bin/ruby.exe extconf.rb
> > > checking for main() in -lonig... *** extconf.rb failed ***
> > > Could not create Makefile due to some reason, probably lack of
> > > necessary libraries and/or headers.  Check the mkmf.log file for more
> > > details.  You may need configuration options.
>
> > > Provided configuration options:
> > >         --with-opt-dir
> > >         --without-opt-dir
> > >         --with-opt-include
> > >         --without-opt-include=${opt-dir}/include
> > >         --with-opt-lib
> > >         --without-opt-lib=${opt-dir}/lib
> > >         --with-make-prog
> > >         --without-make-prog
> > >         --srcdir=.
> > >         --curdir
> > >         --ruby=C:/Ruby19/bin/ruby
> > >         --with-oniglib
> > >         --without-oniglib
> > > C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed
> > > to generat
> > > e an executable file. (RuntimeError)
> > > You have to install development tools first.
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:417:in `try_link0'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:421:in `try_link'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:529:in `try_func'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:725:in `block in
> > > have_library'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in `block in
> > > checking_for'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels)
> > > in postpo
> > > ne'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block in
> > > postpone'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:720:in `have_library'
> > >         from extconf.rb:2:in `<main>'
>
> > > Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/
> > > oniguruma-
> > > 1.1.0 for inspection.
> > > Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/
> > > ext/gem_mak
> > > e.out
> > > Building native extensions.  This could take a while...
> > > ERROR:  Error installing ultraviolet:
> > >         ERROR: Failed to build gem native extension.
>
> > > C:/Ruby19/bin/ruby.exe extconf.rb
> > > checking for main() in -lonig... *** extconf.rb failed ***
> > > Could not create Makefile due to some reason, probably lack of
> > > necessary libraries and/or headers.  Check the mkmf.log file for more
> > > details.  You may need configuration options.
>
> > > Provided configuration options:
> > >         --with-opt-dir
> > >         --without-opt-dir
> > >         --with-opt-include
> > >         --without-opt-include=${opt-dir}/include
> > >         --with-opt-lib
> > >         --without-opt-lib=${opt-dir}/lib
> > >         --with-make-prog
> > >         --without-make-prog
> > >         --srcdir=.
> > >         --curdir
> > >         --ruby=C:/Ruby19/bin/ruby
> > >         --with-oniglib
> > >         --without-oniglib
> > > C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed
> > > to generat
> > > e an executable file. (RuntimeError)
> > > You have to install development tools first.
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:417:in `try_link0'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:421:in `try_link'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:529:in `try_func'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:725:in `block in
> > > have_library'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in `block in
> > > checking_for'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels)
> > > in postpo
> > > ne'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block in
> > > postpone'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
> > >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:720:in `have_library'
> > >         from extconf.rb:2:in `<main>'
>
> > > Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/
> > > oniguruma-
> > > 1.1.0 for inspection.
> > > Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/
> > > ext/gem_mak
> > > e.out
>
> > > I'm using windows 7 with
> > > ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
>
> > > actionmailer (2.3.5)
> > > actionpack (2.3.5)
> > > activerecord (2.3.5)
> > > activeresource (2.3.5)
> > > activesupport (2.3.5)
> > > mysql (2.8.1)
> > > rack (1.0.1)
> > > rails (2.3.5)
> > > rake (0.8.7)
>
> > > Any help that anyone can give me to resolve this issue is highly
> > > appreciated.
>
> > > Cheers!

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Subscribe feeds via e-mail

Blog Archive