rubyonrailsin

A Ruby and Rails talk

Tuesday, March 9, 2010

[Radiant-Dev] Radiant could not be initialized. Please reinstall the Radiant gem with the command 'gem install radiant'.

by rubyonrailsin 0 comments
I have both the 0.8.0, and 0.9.0 gem installed on my local machine. I
use each for different applications. This usually isn't a problem but
today I created a site with the 0.8.0 gem. I then tried to upgrade it
to the 0.9.0 gem with the following method from the RadiantCMS blog

How to Upgrade an Existing Project or Site

1. Update the Radiant assets from in your project:

rake radiant:update
2. Migrate the database:

rake production db:migrate


Note: I never actually tried this before

My 0.8.0 sites still work ok. But my 0.9.0 sites wont start now. Nor
can I list rake task etc. If I try to run anything it gives me this
error:

Radiant could not be initialized. Please reinstall the Radiant gem
with the command 'gem install radiant'.

I can't figure out how to fix it. The gems are still installed the
same as they were. I tried putting RADIANT_GEM_VERSION = "0.9.0" in
environment.rb. That doesn't do anything.

Any ideas how to fix this.

--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/

Read More…

[Rails] Re: File Upload - Preserving Original File Name

by rubyonrailsin 0 comments
> Try this:
>
> File.open(File.join(params[:upload_directory],
> params[:file2upload].original_filename),'wb'){ |f|
>   f.write(params[:file2upload].read) }

Yes; but, as I understand your suggestion, that would require me to
pass the original filename as a parameter. What I'm trying to find
out is whether the original filename is somehow available for use as a
part of the file upload mechanism without my having to pass it as a
parameter. If it turns out that it's not available within the file
upload mechanism; then, I can pass it. It's just that I don't want to
go that route if there is an easier way.

Thanks for the input.

... doug

--
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: Spree Edge + Paypal Express = 10413 error

by rubyonrailsin 0 comments
Thanks for your help Peter. It worked better with your update.

On 8 mar, 21:54, Peter Kordel <pkor...@gmail.com> wrote:
> I'm doing some work on PPE at the moment, if you like you could try my
> fork to see if it helps:http://github.com/pkordel/spree-paypal-express
>
> On Mon, Mar 8, 2010 at 8:24 PM, liebana <carloslieb...@gmail.com> wrote:
> > Hello,
>
> > We're in a big problem with Paypal Express and Spree, any help is
> > truly welcomed. If we don't define any taxes on our product,
> > everything goes perfect. But, if we do, we receive the error "10413
> > Transaction refused because of an invalid argument. See additional
> > error messages for details. - The totals of the cart item amounts do
> > not match order amounts."
>
> > We're getting crazy with this, and we don't know what's going on. We
> > add transport costs to the delivery, and they are added well. The
> > amount passed to Paypal is not the same than the total amount
> > calculated by Spree, we don't know why.
>
> > Thank you very much in advance.
>
> > Best regards.
>
> > --
> > 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.

Read More…

[Rails] Re: How can I check my current version of rails?

by rubyonrailsin 0 comments
Type in terminal: rails -v

On Mar 9, 8:19 pm, Muhammad mohsin ali Ma <li...@ruby-forum.com>
wrote:
> How can I check my current version of rails?
> --
> Posted viahttp://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: local variable

by rubyonrailsin 0 comments
thanks,

pls can you post the link?

On Mar 9, 7:30 pm, Hassan Schroeder <hassan.schroe...@gmail.com>
wrote:
> On Tue, Mar 9, 2010 at 10:22 AM, kevid <alumsimport...@yahoo.ca> wrote:
> > Please, is it possible passing a local variable (specifically of type
> > "integer") from a view to controller using the "link_to" function
> > in rails.
>
> > All answers are appreciated.
>
> Have you read the API doc for link_to ? Your answer is there :-)
>
> (though HTTP request parameters are going to be strings, always)
>
> --
> Hassan Schroeder ------------------------ hassan.schroe...@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] local variable

by rubyonrailsin 0 comments
On Tue, Mar 9, 2010 at 10:22 AM, kevid <alumsimportant@yahoo.ca> wrote:

> Please, is it possible passing a local variable (specifically of type
> "integer") from a view to controller using the "link_to" function
> in rails.
>
> All answers are appreciated.

Have you read the API doc for link_to ? Your answer is there :-)

(though HTTP request parameters are going to be strings, always)

--
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] RoR Developer Needed For Long Term Project [Jobs]

by rubyonrailsin 0 comments
Hi Blue
View my profile and resume
http://sites.google.com/site/shyammohankanojia/cv

Regards,
Shyam
+91-9716-18-9650



On Tue, Mar 9, 2010 at 11:10 PM, anton effendi <wuyouduan@gmail.com> wrote:
Please open www.kiranatama.com or www.wgs.co.id


On Tue, Mar 9, 2010 at 3:32 AM, Blue Dog <Joshua@joshuadean.com> wrote:
We are currently seeking a very experienced Ruby on Rails developer to
complete our Rails development; a social networking platform for
businesses and their customers.  The project is 90%-95% complete, but
we need someone (or some company) to complete it and provide the
ongoing support and long term development that will be needed. The
system currently also includes a product shopping cart system that is
linked to Authoriz.net, so an understanding of this system is
important.

All current Rails code and framework will be provided to you and our
current developer will likely walk you through all the code and
functionality in order to get you caught up to speed.

Website development and some graphic design skills are essential. We
prefer qualified candidates within the Chicagoland area due to the
scope of the project, but may consider candidates nationwide.

We will NOT consider any candidates that don't provide us with a
portfolio that showcases your ability and experience with Ruby on
Rails. Our current programmer will help us select a qualified
candidate. Further details of the project will be provided to the
selected candidate.

Work is available immediately!

--
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.




--

Senior Rails Developer
Anton Effendi - Wu You Duan

--
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] help on deployemnt

by rubyonrailsin 0 comments
On Tue, Mar 9, 2010 at 4:59 AM, M I R <m.irfansb@gmail.com> wrote:
> Look at this
> hmis.w3whizz.com
>
> this is my server for rail and i think its ok, i upload all my files
> from my local machine but it only display the homepage and any other
> url is not accessible like hmis.w3whizz.com/emr_visits please somebody
> give me some solution i am tired trying from last 3 days.

No one can help you without a lot more information, like details of the
deployment platform and how you're deploying.

You should also be looking at your logs for errors.

--
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…

[Rails] local variable

by rubyonrailsin 0 comments
Hi all,

Please, is it possible passing a local variable (specifically of type
"integer") from a view to controller using the "link_to" function

in rails.

All answers are appreciated.

--
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] How can I check my current version of rails?

by rubyonrailsin 0 comments
How can I check my current version of rails?
--
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: Ajax-submit form on "check box onclick ": why this error?

by rubyonrailsin 0 comments
Thanks for your answer. Unfortunately, if I try...

:onclick => "remote_function('this.form.submit();')"

...then I get an error (by Firebug): "remote_function is not defined"

Any other ideas?
--
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…

Re: [Rails] Re: Re: Re: Re: Re: Re: how to obtain the index of selected item from select box?

by rubyonrailsin 0 comments
Veena,
 
I would suggest going through http://railscasts.com ......from episode 1st till the end... and keep watching the newer episodes.
Ryan Bates is one of the best Rails Gurus there are....
 
Happy Women's Day,
Nitin.
On Tue, Mar 9, 2010 at 4:29 PM, Veena Jose <lists@ruby-forum.com> wrote:
Hai Nitin,

   You have helped me a lot......
Can you please suggest me some good books or links where a newbie like
me can understand Ruby on rails much better....

Thank you once again.........

Sincerely,
Veena
--
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.


--
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] Ajax-submit form on "check box onclick ": why this error?

by rubyonrailsin 0 comments
I think...
Dont use #{....}

<%= check_box_tag 'whatever', nil, whatever, { :onclick =>
"remote_function('this.form.
submit();')", :disabled => false } %>

But I dont because i never try it...
keep trying


On Wed, Mar 10, 2010 at 1:02 AM, Tom Ha <lists@ruby-forum.com> wrote:
Hi there,

I need to have a checkbox which ajax-submits a form.

The following code throws an error "index 112009 out of string". What's
wrong here?

==============================================
<% form_remote_tag :url => { whatever_url } do -%>

<%= check_box_tag 'whatever', nil, whatever, { :onclick =>
"#{remote_function('this.form.submit();')}", :disabled => false } %>

<% end -%>
==============================================

Thanks for any help with this!
Tom
--
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.




--

Senior Rails Developer
Anton Effendi - Wu You Duan

--
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] Ajax-submit form on "check box onclick ": why this error?

by rubyonrailsin 0 comments
Hi there,

I need to have a checkbox which ajax-submits a form.

The following code throws an error "index 112009 out of string". What's
wrong here?

==============================================
<% form_remote_tag :url => { whatever_url } do -%>

<%= check_box_tag 'whatever', nil, whatever, { :onclick =>
"#{remote_function('this.form.submit();')}", :disabled => false } %>

<% end -%>
==============================================

Thanks for any help with this!
Tom
--
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…

[Radiant-Dev] Re: Translation of Radiant ? + theme directory ?

by rubyonrailsin 0 comments
Okay I feel stupid not to found them,
Maybe the next question isent a smart one either, but how the heck
should you install this?
Its just a complete repro of radiant with all extras? What If i want
to add this to my existing install..
Just copying the i18n folder to extensions? Normally you set in your
config somewhere the language you want to use,
please some more clarification would be great. Guess im not the only
one that wonders(?)

Thanks

On Mar 9, 2:34 pm, qutic development <mailingli...@qutic.com> wrote:
> You find additional locales in vendor/extensions
>
> On 09.03.2010, at 14:01, rubybox wrote:
>
>
>
> > Okay only strings for the dates, etc.
> > Not translation of the UI, or am i wrong?

--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/

Read More…

Re: [Rails] Re: noob question on associated records and their controller

by rubyonrailsin 0 comments
You should just be able to do child.parent

--
Jeremy Chase
http://twitter.com/jeremychase



On Tue, Mar 9, 2010 at 12:51 PM, Marnen Laibow-Koser <lists@ruby-forum.com> wrote:
Grary wrote:
> Hi,
>
> I have controllers for two models between which there exists a
> belongs_to/has_one relationship.
>
> How do I reference the parent model object in the child controller so
> that I can later recover the child object in the parent controller,
> i.e., create and "attach" the child to the parent model for later
> recovery?

If you have your associations set up properly, this is automatic.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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.


--
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: noob question on associated records and their controller

by rubyonrailsin 0 comments
Grary wrote:
> Hi,
>
> I have controllers for two models between which there exists a
> belongs_to/has_one relationship.
>
> How do I reference the parent model object in the child controller so
> that I can later recover the child object in the parent controller,
> i.e., create and "attach" the child to the parent model for later
> recovery?
>
> I would have guessed it was something like as follows:
>
> class ChildController...
>
> def create
> @parent = ParentModel.find(params[:id]) # How to get "current"
> parent from database?

Don't bother finding the parent model if you already have the ID.
That's an extra query for no reason in most cases.

> @parent.child = ChildModel.new(params[:child])

Oh, on second reading, I see what you're asking. Check out nested
resources and accepts_nested_attributes_for. Also read the Rails guide
on associations if you haven't already.

> ...
>
> Any thoughts?

Yes, try it before you ask! :) Rails makes this simple.

>
> Grary

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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: noob question on associated records and their controller

by rubyonrailsin 0 comments
Grary wrote:
> Hi,
>
> I have controllers for two models between which there exists a
> belongs_to/has_one relationship.
>
> How do I reference the parent model object in the child controller so
> that I can later recover the child object in the parent controller,
> i.e., create and "attach" the child to the parent model for later
> recovery?

If you have your associations set up properly, this is automatic.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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: where to put helper fns for fixtures?

by rubyonrailsin 0 comments
Fearless Fool wrote:
> I'm writing a fixture in test/fixtures/parrots_model.yml, and I'm
> happily using ERB to flesh out my fixture. Suddenly, I realize that I
> need a helper function to call from my erb code, such as:
>
> polly:
> subtype: parakeet
> weight_kg: <%= ounces_to_kg(22.3) %>
>
> alex:
> subtype: african gray
> weight_kg: <%= ounces_to_kg(170.3) %>
>
> Where's the right place to stash the "ounces_to_kg()" function so that
> it's available when I rake db:load:fixtures?

Nowhere, because IMHO it's never right to use Rails fixtures. Use
factories instead -- I'm fond of Machinist, but there are other
solutions out there. This will solve your problem and also give you
many other advantages.

Fixtures are a horribly broken feature of Rails. Don't bother with
them.

> (And does the answer
> change if its a method specific to the parrot model?)
>
> tia.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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…

Re: [Radiant-Dev] CRM extension

by rubyonrailsin 0 comments
this looks great. thanks.

On Mon, Mar 8, 2010 at 11:30 PM, crankin <rankin.devon@gmail.com> wrote:
For anyone interested in a CRM extension for Radiant I just uploaded
my CRM extension.

http://ext.radiantcms.org/extensions/206-crm

It allows you to mange and assign the following.

Leads
Contacts
Accounts
Opportunities
Tasks
Campaigns

Hopefully this will be of some use to some of you.

Thanks,

Chris

--
Radiant CMS Dev Mailing List
Post:        radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site:  http://groups.google.com/group/radiantcms-dev/

--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…

[Rails] Re: Re: form_for, submit, and parameters disappearing

by rubyonrailsin 0 comments
Ralph Shnelvar wrote:
> Colin Law wrote:
>> I think maybe you cannot include query terms in form_for :url. An
>> alternative is to use hidden fields in the form.
>
> Colin, thank you. You appear to be correct.
>
> So for the next poor person fighting to get internationalization to work
> (I18n. See http://guides.rubyonrails.org/i18n.html Section 2.3 Setting
> and Passing the Locale) ..
>
> form_for cannot be, uh, "internationalized" because the various flavors
> of url_for that I18n hooks will have the locale parameter disappear if a
> form, any form, is used. It appears not to be an ruby/rails/I18n problem
> but an arcane "problem" in html.
>
> Thus ... if you want to pass a couple of extra parameters when using
> form_for ... you can do what I did. I'm pasting in my adlterated code:
>
> - - - - - - -
> <% form_for @countryToSearchFor,
> :url => signed_in_path(:action => "show", :id =>
> 'connected_to_country'),
> :html => {:method => :get} do |f| %>
> <input type="hidden" name="locale" value="<%= params[:locale] %>" >
> <input type="hidden" name="somename" value="someothervalue" >
[...]

Why not store the locale in the session, instead of passing around
hidden fields?

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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: Efficiently building collections of nested sets

by rubyonrailsin 0 comments
DGerton wrote:
> This is question deals with the common example where Category has_many
> Products. (We'll use Species instead of Products here.)
>
> Assume Category is a nested class. Let's use this as the example:
>
> [Categories]
> Animals (id 1, parent_id=nil)
> -Mammals (id 2, parent_id=1)
> --Rodents (id 3, parent_id=2)
> -Birds (id 4, parent_id=1)
>
> [Species]
> Dog (category_id 2)
> Cat (category_id 2)
> Mouse (category_id 3)
> Rabbit (category_id 3)
> Duck (category_id 4)
>
> I want to be able to perform a select at Animals and get all of the
> Species below it, and also be able to select from Birds and just get
> Duck. It's also necessary to sort the resultant collection.
>
> This seems like a common problem and I'm overlooking a simple
> solution. Right now, though, I'm thinking I need to build up a query
> with a lot of ORs in the WHERE clause (e.g. to get mammals and the
> children I'd need :condition => "category_id = 2 OR category_id =
> 3"). This doesn't feel very rails-like.
>
> I'm not opposed to restructuring the database at this point, if that
> makes solving this problem easier.

You're using an adjacency-list tree model right now, where each node
only stores its parent ID. This has the problem you've discovered: you
can't get all descendants to arbitrary depths with one query.

The solution is to use a nested-set or nested-interval model. There are
several Rails plugins for this; awesome_nested_set is the one that I've
used most.

>
> Thanks in advance.
> Dave

Best
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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…

[spree-user] Re: Paypal Integration Difficulty

by rubyonrailsin 0 comments
I am using 9.4 . Do we need to be at 10 for this extension to work?

On Mar 7, 8:24 pm, "Bryan.Taylor" <btaylo...@gmail.com> wrote:
> So I've installedpaypalexpress using script/extension install
> git://github.com/railsdog/spree-paypal-express.git and restarted my
> site by killing dispatch.fcgi, but when I run script/server, I am
> receiving this error:
>
> /home/veevecos/veeveShop/vendor/extensions/paypal_express/app/models/
> billing_integration/paypal_express.rb:1: superclass must be a Class
> (Module given) (TypeError)
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:380:in
> `load_without_new_constant_marking'without_new_constant_marking'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:380:in `load_file'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:521:in `new_constants_in'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:379:in `load_file'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:259:in `require_or_load'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:425:in `load_missing_constant'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:80:in `const_missing'
>         from /home/veevecos/veeveShop/vendor/extensions/paypal_express/
> paypal_express_extension.rb:10:in `activate'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> extension.rb:34:in `activate'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:145:in `to_proc'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> extension_loader.rb:95:in `each'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> extension_loader.rb:95:in `activate_extensions'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> initializer.rb:132:in `after_initialize'
>         from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/
> initializer.rb:179:in `process'
>         from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/
> initializer.rb:113:in `send'
>         from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/
> initializer.rb:113:in `run'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> initializer.rb:97:in `run'
>         from /home/veevecos/veeveShop/config/environment.rb:14
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `gem_original_require'
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:156:in `require'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:521:in `new_constants_in'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:156:in `require'
>         from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/
> server.rb:84
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `gem_original_require'
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require'
>         from script/server:3
>
> Have you experienced this error?  Any idea how I can resolve it?
>
> Thanks.
>
> On Feb 25, 2:41 am, Paul Callaghan <p...@railsdog.com> wrote:
>
>
>
> > > When you say pull an earlier version, are you talking about Spree or the
> > >paypal-express extension?
>
> > Oops - I meant the extension; so go for the revision before yesterday's
> > additions.
>
> > Also, is there a good guide to RoR> initializers that you have referenced before?  I'm just looking for as
> > > many good RoR resources and Spreesources as possible :)
>
> > Take a look at code - eg the spree-demo contains useful examples (although
> > it's a bit out of date now).
>
> > Paul

--
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] RoR Developer Needed For Long Term Project [Jobs]

by rubyonrailsin 0 comments
Please open www.kiranatama.com or www.wgs.co.id

On Tue, Mar 9, 2010 at 3:32 AM, Blue Dog <Joshua@joshuadean.com> wrote:
We are currently seeking a very experienced Ruby on Rails developer to
complete our Rails development; a social networking platform for
businesses and their customers.  The project is 90%-95% complete, but
we need someone (or some company) to complete it and provide the
ongoing support and long term development that will be needed. The
system currently also includes a product shopping cart system that is
linked to Authoriz.net, so an understanding of this system is
important.

All current Rails code and framework will be provided to you and our
current developer will likely walk you through all the code and
functionality in order to get you caught up to speed.

Website development and some graphic design skills are essential. We
prefer qualified candidates within the Chicagoland area due to the
scope of the project, but may consider candidates nationwide.

We will NOT consider any candidates that don't provide us with a
portfolio that showcases your ability and experience with Ruby on
Rails. Our current programmer will help us select a qualified
candidate. Further details of the project will be provided to the
selected candidate.

Work is available immediately!

--
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.




--

Senior Rails Developer
Anton Effendi - Wu You Duan

--
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: Code Cleaning

by rubyonrailsin 0 comments
Christophe wrote:
> Hi there,
>
> I'm kind of a newbie on RoR and on this group and I was wondering if
> someone could help to clean this bit of code:
>
> <%= link_to_remote (image_tag("hide.png", :size=>"16x16"),
> :url=>"/message/#{message.id}/hide",
> :method=>"post",
> :before=>"Effect.Fade(this.parentNode.parentNode, {duration:
> 0.5});
> Effect.BlindUp(this.parentNode.parentNode, {duration:
> 0.5})")
> %>
> <%= link_to_remote (image_tag("top.png", :size=>"16x16"),
> :url=>"/message/#{message.id}/top",
> :method=>"post",
> :before=>"Effect.Fade(this.parentNode.parentNode, {duration:
> 0.5});
> Effect.BlindUp(this.parentNode.parentNode, {duration:
> 0.5})")
> %>
> <%= link_to_remote (image_tag("bottom.png", :size=>"16x16"),
> :url=>"/message/#{message.id}/bottom",
> :method=>"post",
> :before=>"Effect.Fade(this.parentNode.parentNode, {duration:
> 0.5});
> Effect.BlindUp(this.parentNode.parentNode, {duration:
> 0.5})")
> %>
>
> As you can see I have some kind of options that do repeat themselves.
> My idea was to find a way to describe them for once and use them
> repeatedly.
> Any thoughts on how to achieve this,

Well, one thing to do: take the JavaScript out of your ERb files and put
it in a separate JavaScript file. This has many advantages, among them
the fact that it's easier to reduce repetition.

>
> Thanks in advance,
>
> Christophe

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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: Redirect to the url after login

by rubyonrailsin 0 comments
Tushar Gandhi wrote:
> Hi,
> I am using authlogic as a authentication mechanism.
> I am sending out an email to user if he has any new friend request. I am
> giving a URL in the email from which he can accept the invitation.
> My problem is whenever the user is not logged in he is redirected to the
> login page first. After successful login he should be redirected to
> "accept_friendship" URL But it doesn't it goes to the default page after
> successful login.
>
> How should I fix this?
>
> Thanks,
> Tushar Gandhi

There should be lots of rails tutorials out there that speak about
remembering the original request URL for redirecting after a successful
login.

http://ethilien.net/archives/better-redirects-in-rails/ is one such
resource.
--
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: RESTful photo album

by rubyonrailsin 0 comments
DmitryPush wrote:
> Hi, all!
> I'm new in Rails.
> I've read "Agile web development" and now I want made my very first
> rails application - photo album.
> But I don't know how to design it RESTful.
>
> For example I have 3 chapters and 100 photos on each one and i want
> list only 10 photos on page.

Forget about trying to engineer your URLs (save that for later if you
want).
Take a look at mislav-will_paginate for showing N items per page. Mix
that with good use of the in_groups_of, and you can have a nice layout
in rows and columns if that's your desire.


> And now I also want know in general how to process request like
> site.my/say/hello/to/homer
> I know if it just site.my/say/hello - then 'say' - it's controller
> and' hello' - it's action, but what when 'to' and 'homer'?
> How exactly tell my rails application whet I want say hello to Homer?
>

You'll want to read up on specifying routes in rails to accomplish that
task.
--
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…

[spree-user] Re: Paypal Integration Difficulty

by rubyonrailsin 0 comments
Bryan I am having the same problem. Have you been able to resolve it?

Thanks!

On Mar 7, 8:24 pm, "Bryan.Taylor" <btaylo...@gmail.com> wrote:
> So I've installedpaypalexpress using script/extension install
> git://github.com/railsdog/spree-paypal-express.git and restarted my
> site by killing dispatch.fcgi, but when I run script/server, I am
> receiving this error:
>
> /home/veevecos/veeveShop/vendor/extensions/paypal_express/app/models/
> billing_integration/paypal_express.rb:1: superclass must be a Class
> (Module given) (TypeError)
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:380:in
> `load_without_new_constant_marking'without_new_constant_marking'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:380:in `load_file'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:521:in `new_constants_in'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:379:in `load_file'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:259:in `require_or_load'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:425:in `load_missing_constant'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:80:in `const_missing'
>         from /home/veevecos/veeveShop/vendor/extensions/paypal_express/
> paypal_express_extension.rb:10:in `activate'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> extension.rb:34:in `activate'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:145:in `to_proc'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> extension_loader.rb:95:in `each'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> extension_loader.rb:95:in `activate_extensions'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> initializer.rb:132:in `after_initialize'
>         from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/
> initializer.rb:179:in `process'
>         from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/
> initializer.rb:113:in `send'
>         from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/
> initializer.rb:113:in `run'
>         from /usr/lib/ruby/gems/1.8/gems/spree-0.9.4/lib/spree/
> initializer.rb:97:in `run'
>         from /home/veevecos/veeveShop/config/environment.rb:14
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `gem_original_require'
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:156:in `require'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:521:in `new_constants_in'
>         from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:156:in `require'
>         from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/
> server.rb:84
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `gem_original_require'
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require'
>         from script/server:3
>
> Have you experienced this error?  Any idea how I can resolve it?
>
> Thanks.
>
> On Feb 25, 2:41 am, Paul Callaghan <p...@railsdog.com> wrote:
>
>
>
> > > When you say pull an earlier version, are you talking about Spree or the
> > >paypal-express extension?
>
> > Oops - I meant the extension; so go for the revision before yesterday's
> > additions.
>
> > Also, is there a good guide to RoR> initializers that you have referenced before?  I'm just looking for as
> > > many good RoR resources and Spreesources as possible :)
>
> > Take a look at code - eg the spree-demo contains useful examples (although
> > it's a bit out of date now).
>
> > Paul

--
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: Re: Career change: becoming RoR dev

by rubyonrailsin 0 comments
I have to agree here; your strongest skill is one that is often lacking in Rails developers.

You should be building an online 'portfolio', but if I were you, I'd focus on deployment and testing for value add to companies.

--
Jeremy Chase
http://twitter.com/jeremychase



On Tue, Mar 9, 2010 at 10:58 AM, Peter Hickman <peterhickman386@googlemail.com> wrote:
Given your sys admin skills you could join a small company and be a sysadmin / developer and use that to get you skills then either become full time developer or move on with a CV that says developer.

I seem to be going the other way :)

--
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…

[Rails] Re: Automating CSS in a plugin

by rubyonrailsin 0 comments
Would anyone be able to help with my query?

--
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] undefined method `accepts_nested_attributes_for' for #<Class:

by rubyonrailsin 0 comments
Sorry for the newb question,
but it is: going through first steps I fond this exception.

Have no idea, my rails version is 2.3.5

--
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: Noob issue with virtual attributes

by rubyonrailsin 0 comments
Frederick Cheung wrote:
> If you have a has_many you can do tips.build(...) but with belongs_to
> and has_one you need to call build_tip instead
>
> Fred

Thanks Fred, it works better now. But an have another issue. Now the
data are stored in the database but the column city_it in the table tips
is nil.
Do i have the set it the setter like this?

def tip_attribute=(attribute)
attribute[:city_id] = self.id
build_tip(attribute)
end


Tip model:
class Tip < ActiveRecord::Base
attr_accessible :min,:max,:city_id

has_one :city

validates_numericality_of :min, :only_integer => true
validates_numericality_of :max, :only_integer => true
end


It does work if I do this, but is it the correct way to do it? should it
be filled automaticly by active record?

Greg
--
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…

Re: [Radiant-Dev] Re: Draggable sort of pages?

by rubyonrailsin 0 comments
I'm going to check out Anna's bug fixes in the morning, would be cool if we can see a bit of a speed improvement, also the idea of moving the handles away from the remove makes me smile.

On Wed, Mar 10, 2010 at 12:24 AM, Jonathan Kinney <jonkinney@gmail.com> wrote:
I've used Dirk's fork, it works flawlessly (albeit a bit slow, not
anything he did). I'd recommend it.
-Jon


On Tue, Mar 9, 2010 at 7:52 AM, [Square Talent] Dirk Kelly
<dirk.kelly@squaretalent.com> wrote:
> I have a working 0.9.0 branch
> http://github.com/squaretalent/radiant-drag-extension
> Just let bright4 know
> On Tue, Mar 9, 2010 at 9:29 PM, rubybox <voorruby@gmail.com> wrote:
>>
>> The only usefull one I found was this one:
>>
>> http://github.com/bright4/radiant-drag-order
>>
>> Which is not working with 9.x
>> I try to look into it and try to fix
>>
>> So no real working solution for 9.x edge exist if im correct
>>
>>
>> On Mar 9, 2:18 pm, William Ross <w...@spanner.org> wrote:
>> > Have you tried typing 'drag' into the search box in the radiant
>> > extension registry? That would be an excellent place to start.
>> >
>> > best,
>> >
>> > will
>> >
>> > On 9 Mar 2010, at 13:15, rubybox wrote:
>> >
>> >
>> >
>> >
>> >
>> > > Could not find any extensions to sort the page order with drag and
>> > > drop,
>> > > Anyone made such a extension?
>> >
>> > > This should be a essential feature for the Core In my humble opinion
>> >
>> > > --
>> > > Radiant CMS Dev Mailing List
>> > > Post:        radiantcms-dev@googlegroups.com
>> > > Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>> > > Group Site:  http://groups.google.com/group/radiantcms-dev/
>>
>> --
>> Radiant CMS Dev Mailing List
>> Post:        radiantcms-dev@googlegroups.com
>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>> Group Site:  http://groups.google.com/group/radiantcms-dev/
>
> --
> Radiant CMS Dev Mailing List
> Post: radiantcms-dev@googlegroups.com
> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
> Group Site: http://groups.google.com/group/radiantcms-dev/

--
Radiant CMS Dev Mailing List
Post:        radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site:  http://groups.google.com/group/radiantcms-dev/

--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…

Re: [Radiant-Dev] Re: Draggable sort of pages?

by rubyonrailsin 0 comments
I've used Dirk's fork, it works flawlessly (albeit a bit slow, not
anything he did). I'd recommend it.
-Jon


On Tue, Mar 9, 2010 at 7:52 AM, [Square Talent] Dirk Kelly
<dirk.kelly@squaretalent.com> wrote:
> I have a working 0.9.0 branch
> http://github.com/squaretalent/radiant-drag-extension
> Just let bright4 know
> On Tue, Mar 9, 2010 at 9:29 PM, rubybox <voorruby@gmail.com> wrote:
>>
>> The only usefull one I found was this one:
>>
>> http://github.com/bright4/radiant-drag-order
>>
>> Which is not working with 9.x
>> I try to look into it and try to fix
>>
>> So no real working solution for 9.x edge exist if im correct
>>
>>
>> On Mar 9, 2:18 pm, William Ross <w...@spanner.org> wrote:
>> > Have you tried typing 'drag' into the search box in the radiant
>> > extension registry? That would be an excellent place to start.
>> >
>> > best,
>> >
>> > will
>> >
>> > On 9 Mar 2010, at 13:15, rubybox wrote:
>> >
>> >
>> >
>> >
>> >
>> > > Could not find any extensions to sort the page order with drag and
>> > > drop,
>> > > Anyone made such a extension?
>> >
>> > > This should be a essential feature for the Core In my humble opinion
>> >
>> > > --
>> > > Radiant CMS Dev Mailing List
>> > > Post:        radiantcms-dev@googlegroups.com
>> > > Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>> > > Group Site:  http://groups.google.com/group/radiantcms-dev/
>>
>> --
>> Radiant CMS Dev Mailing List
>> Post:        radiantcms-dev@googlegroups.com
>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>> Group Site:  http://groups.google.com/group/radiantcms-dev/
>
> --
> Radiant CMS Dev Mailing List
> Post: radiantcms-dev@googlegroups.com
> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
> Group Site: http://groups.google.com/group/radiantcms-dev/

--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/

Read More…

Re: [Radiant-Dev] Re: Draggable sort of pages?

by rubyonrailsin 0 comments
Anna forked drag_order and we used that in a project -- she fixed some bugs and I think it worked with 0.9.0 (but we release it with 0.8)

On Mar 9, 2010, at 5:52 AM, [Square Talent] Dirk Kelly wrote:

I have a working 0.9.0 branch


Just let bright4 know

On Tue, Mar 9, 2010 at 9:29 PM, rubybox <voorruby@gmail.com> wrote:
The only usefull one I found was this one:

http://github.com/bright4/radiant-drag-order

Which is not working with 9.x
I try to look into it and try to fix

So no real working solution for 9.x edge exist if im correct


On Mar 9, 2:18 pm, William Ross <w...@spanner.org> wrote:
> Have you tried typing 'drag' into the search box in the radiant extension registry? That would be an excellent place to start.
>
> best,
>
> will
>
> On 9 Mar 2010, at 13:15, rubybox wrote:
>
>
>
>
>
> > Could not find any extensions to sort the page order with drag and
> > drop,
> > Anyone made such a extension?
>
> > This should be a essential feature for the Core In my humble opinion
>
> > --
> > Radiant CMS Dev Mailing List
> > Post:        radiantcms-dev@googlegroups.com
> > Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
> > Group Site:  http://groups.google.com/group/radiantcms-dev/

--
Radiant CMS Dev Mailing List
Post:        radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site:  http://groups.google.com/group/radiantcms-dev/


--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/


Read More…

[Rails] [JOBS] Ruby On Rails Developer

by rubyonrailsin 0 comments
RUBY ON RAILS DEVELOPER: BIBLIOCOMMONS

The Position:

We are seeking an experienced and passionate Ruby developer who will
be a major contributor to our innovative social discovery platform for
libraries.

The Ideal Candidate:

* Is most comfortable in a flexible, collaborative environment
* Believes in releasing value to users early and often
* Thrives on building best-of-breed technology, and making it scale
* Delivers high quality code quickly

Requirements and Qualifications:

* Degree in Computer Science or related field
* Minimum 2 years Rails development experience
* Minimum 5 years front-end web development and design
* Intimate knowledge of DHTML, Javascript, AJAX, CSS, etc.
* PHP or Drupal development experience an asset

About Bibliocommons:

Toronto-based BiblioCommons is developing groundbreaking, hosted web
service solutions for libraries. We help turn the public library's
online catalog into a highly interactive space, which our clients and
users routinely describe as "amazing", "addictive" and "wonderful".
Library websites across North America engage over 60 million online
users annually and collectively lend almost as many books, movies and
music CDs in a single month as Amazon sells in a year.

We're Interested In:

* Pushing the boundaries of the interactive web and "social discovery"
– making smarter connections between users and the content,
conversations, and the communities they're most interested in – on a
huge scale.

* Developing and delivering a product that matters -- a vast, public
commons on the net where community organizes collections, and
collections organize community.

* Supporting a fast-paced, agile development environment, with a team
of people who are as smart, inspired and committed as you are.

BiblioCommons is backed by an experienced management team and has
established contracts for broad-scale service delivery in both Canada
and the United States.

Compensation:
* Dependent on experience

If you'd like to be part of the team that develops and delivers these
solutions, please submit your CV and cover letter to:
jobs@bibliocommons.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] pdf-stamper

by rubyonrailsin 0 comments
Hi,

I have installed both pdf-stamper and rjb on my machine, and when I
tired the following code in my controller code

pdf = PDF::Stamper.new("YellowReq.pdf")

I got an error
uninitialized constant HomeController::PDF

I have set up java home
export JAVA_HOME = '/Library/Java/Home'

How to set up LD_LIBRARY_PATH on my snow leopard?

Thanks!
--
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…

Re: [Rails] Re: Re: Career change: becoming RoR dev

by rubyonrailsin 0 comments
Given your sys admin skills you could join a small company and be a sysadmin / developer and use that to get you skills then either become full time developer or move on with a CV that says developer.

I seem to be going the other way :)

--
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] desired: webdav

by rubyonrailsin 0 comments
hi

does anyone know / use / etc of a current webdav implementation / library?

thx tom

--
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: Re: Plugin for uploading a folder of images?

by rubyonrailsin 0 comments
i'll bear that in mind, thanks a lot.
--
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…

Re: [Rails] Re: Plugin for uploading a folder of images?

by rubyonrailsin 0 comments

On 09 Mar 2010, at 14:20, Max Williams wrote:

Thanks Peter.  I did try googling but didn't see anything leap out at 
me, that's why i asked for recommendations.  I'll check SWFupload out. 
Happy for any other suggestions :)

If you use SWFupload and Rails with Rack Middleware (more recent versions), make sure you use the flash_session_cookie_middleware as well as the cookie script from SWFupload if you want to persist sessions with the uploads: http://pastie.org/861481


Best regards


Peter De Berdt


Read More…

[Rails] periodically_call_remote doesn´t work properly

by rubyonrailsin 0 comments
Hi everyone:
I have some problems using periodically_call_remote, here is my code:

<%=periodically_call_remote(:url => 'http://localhost:3000', :frequency
=> '0.5', :update => {:success=>'imagen'})%>
<div id="imagen">
<%=image_tag("/guarrada/Debug/foto.jpg") %>
</div>

My problem is that when I load the web page, it works properly for 3 or
4 refresh, but after that I have the result of the attachment image.
Ayone can say me what I´m doing wrong??

THANKS!!!

Attachments:
http://www.ruby-forum.com/attachment/4557/matar.bmp

--
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: Re: Career change: becoming RoR dev

by rubyonrailsin 0 comments
Andy Jeffries wrote:
>>
>> > I feel you, I love teaching Taekwondo...
>> Ooh.. Where do you teach? (I know, we're going off-topic!)
>>
>
> I'm an assistant instructor at a club in Stevenage, Herts, UK. I used
> to
> have my own club for a few years, but now just help out/deputise.
>
Very nice :) Wish it were on my side of the pond, I love meeting fellow
martial artists.

Thanks for the advice. I'll just keep digging!

--
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…

[spree-user] Re: rake gems:install fails...

by rubyonrailsin 0 comments
I solved this problem by updating my gem version to at least 1.3.5.
This seems to be a stated requirement on the spree project page.

Good luck!

Michael

On Jan 8, 4:36 pm, Maryana <m.osipc...@gmail.com> wrote:
> Hi!
>
> Have same situation
> I use 'git init' to create empty git repository in folder where spree
> installed.
> This helps me with this error, but after I receive next one 'undefined
> method `av_template_class' for Haml::Util:Module'
>
> I use advice from Spree group tread, use haml 2.2.15 instead of 2.2.16
> gem install haml -v=2.2.15
> gem uninstall -I haml -v=2.2.16
>
> > >> I'm running on windows, I have Git installed and in the past it worked
> > >> fine for me when getting the data with Git.
> > >> This time I just downoaded version 0.9.4 of the code and for some
> > >> reason it doesn't work.
> > >> Any idea is appriciated.

--
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: Career change: becoming RoR dev

by rubyonrailsin 0 comments
> I feel you, I love teaching Taekwondo...
Ooh.. Where do you teach? (I know, we're going off-topic!)

I'm an assistant instructor at a club in Stevenage, Herts, UK.  I used to have my own club for a few years, but now just help out/deputise.
 
Understood :) And as far as the search for a position, it's .. Standard
operating procedure?

Yep, contact the pimps (agencies).

Cheers,



Andy

--
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] Code Cleaning

by rubyonrailsin 0 comments
Agreed.  I didn't notice that in the OP's code.

Cheers,


Andy

--
Andy Jeffries
http://andyjeffries.co.uk/      #rubyonrails #mysql #jquery
Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS
Company number: 5452840


On 9 March 2010 14:20, Peter Hickman <peterhickman386@googlemail.com> wrote:
Only thing to note it that the :url parameter changes on each line (it does not always end with 'hide'!)

The fact that it is the same as the image name should be treated as an unfortunate coincidence. The christophe_link_action() method should take two parameters, one for the image file name and one for the url (or at least the last part of it).

--
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…

[Rails] How to hide an object???

by rubyonrailsin 0 comments
Hi everyone:
I want to hide an object before it load. I see in the API the function
page.hide but I don´t have any idea about how to use it properly. Anyone
can help me?? Is there any other form to do that??

THANKs
--
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…

Re: [Rails] RoR Developer Needed For Long Term Project [Jobs]

by rubyonrailsin 0 comments
hi this is rajeev sharma working on ROR
from last year . i have on year exp. in my project
major types of my work is of bug re-movements and enhancements . i
think i would be a good option for you
skills i have :
SVN for updates and commit updates
Rails 2.3.5
mysql
Apache
sphinx
HTML
i could work as a freelancer hourly bases .
any reply would be thankful
thanks:
rajeev kannav sharma
+919813270707

On 3/9/10, Blue Dog <Joshua@joshuadean.com> wrote:
> We are currently seeking a very experienced Ruby on Rails developer to
> complete our Rails development; a social networking platform for
> businesses and their customers. The project is 90%-95% complete, but
> we need someone (or some company) to complete it and provide the
> ongoing support and long term development that will be needed. The
> system currently also includes a product shopping cart system that is
> linked to Authoriz.net, so an understanding of this system is
> important.
>
> All current Rails code and framework will be provided to you and our
> current developer will likely walk you through all the code and
> functionality in order to get you caught up to speed.
>
> Website development and some graphic design skills are essential. We
> prefer qualified candidates within the Chicagoland area due to the
> scope of the project, but may consider candidates nationwide.
>
> We will NOT consider any candidates that don't provide us with a
> portfolio that showcases your ability and experience with Ruby on
> Rails. Our current programmer will help us select a qualified
> candidate. Further details of the project will be provided to the
> selected candidate.
>
> Work is available immediately!
>
> --
> 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.
>
>


--
Thanks:
Rajeev sharma

--
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: Career change: becoming RoR dev

by rubyonrailsin 0 comments
Andy Jeffries wrote:

> So, just to ensure I'm clear - are you asking for shortcuts to be able
> to
> get you straight in to a senior position - or just after hints to
> improve so
> you may take a non-senior position and work up to it?
>
Well, if you happen to know black magic, I'll buy a shortcut for 400;
otherwise, the proper way to do things would suit me just fine :-)
>
>> Most of my
>> free time is spent studying and teaching martial arts, something which I
>> would not trade for the world.
>>
> I feel you, I love teaching Taekwondo...
Ooh.. Where do you teach? (I know, we're going off-topic!)
>>
>
> Practice. Start thinking of small, useful ideas and launch sites for
> them.
> They could be small sites (dynamically generated) with documentation,
> or
> search engine automation/mashups. You then get to practice automated
> testing, deployment, development.
*nod*
>
> Set up a github account and make some gems/plugins and put them on there
> for
> potential employers to find.
http://github.com/Trevoke :-)
>
> Start trying to help people on here - I always found that in putting
> forward
> help to those just coming in helped solidify my own learning, sometimes
> I
> was right (and got a hearty thanks), sometimes I was wrong (and got the
> chance to learn when a more senior developer chimed in). Either way,
> you're
> getting value. Soon you'll be at a point when you can do everything and
> easily answer questions in interviews (and then you can give more back).
>
> It boils down to learn, practice, teach - the same as in martial arts,
> each
> stage has it's own learnings and each is important.
>

Understood :) And as far as the search for a position, it's .. Standard
operating procedure?
--
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…

Subscribe feeds via e-mail

Blog Archive