Hello Jeremy .
Thank you for your advice.
You mean that the folloiwng?
I'll practice to use join method.
def find_from_top_join(search_path)
ds = FileTree.roots_dataset.from_self #<-- change here
search_path[1..-1].split('/').each_with_index do |name, i|
ds = ds.join(:file_trees.as("n#{i}"), :parent_id=>:id, :name=>name)
end
ds.first
end
--
Hiroyuki Sato.
2014年6月30日月曜日 1時27分21秒 UTC+9 Jeremy Evans:
>
> On Saturday, June 28, 2014 11:14:02 PM UTC-7, Hiroyuki Sato wrote:
>>
>> Hello Jeremy
>>
>> Thank you for your advice.
>> I'll check your code.
>>
>
> Thinking more about it, I think you'll need to use the following for the
> initial dataset in those examples:
>
> ds = FileTree.roots_dataset.from_self
>
> but hopefully it will work after that change it will work.
>
> Thanks,
> Jeremy
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.