Re: [Radiant] forms extensions installed, but no Forms tab appears

2010-08-09 Thread Lindsay Morris
Thanks, Jim.
It's here:

ls -l /usr/lib/ruby/gems/1.8/gems/radiant-forms-extension-2.0.1/
total 52
-rw-r--r-- 1 root root 3507 Aug  3 16:52 README.md
-rw-r--r-- 1 root root 4896 Aug  3 16:52 Rakefile
-rw-r--r-- 1 root root6 Aug  3 16:52 VERSION
drwxr-xr-x 5 root root 4096 Aug  3 16:03 app
drwxr-xr-x 3 root root 4096 Aug  3 16:52 config
-rw-r--r-- 1 root root   67 Aug  3 16:52 cucumber.yml
drwxr-xr-x 3 root root 4096 Aug  3 16:03 db
-rw-r--r-- 1 root root  814 Aug  3 16:52 forms_extension.rb
drwxr-xr-x 4 root root 4096 Aug  3 16:03 lib
drwxr-xr-x 3 root root 4096 Aug  3 16:03 public
-rw-r--r-- 1 root root 2933 Aug  3 16:52 radiant-forms-extension.gemspec
drwxr-xr-x 6 root root 4096 Aug  3 16:52 spec

I'm using a hostgator virtual machine.  Their cpanel thing has a gem
installer, which I used; it said it installed OK, along with the docs, but
it never said Done. so I'm not sure it worked right.  Not sure where its
logs are either.

The cpanel thing said I'd need to add my directory to GEM_PATH.
I tried adding
   ENV['GEM_PATH'] = '/home/lindsay/ruby/gems:/usr/lib/ruby/gems/1.8'
to config/environment.rb,
but that didn't work, and it was unclear which directory the gems were
coming from, so I took that line out.  Now at least I know its using the one
in /usr/lib/ruby.

So what do you think I should do?


On Thu, Aug 5, 2010 at 11:59 AM, Jim Gay j...@saturnflyer.com wrote:

 On Wed, Aug 4, 2010 at 3:32 PM, lmorris99 lmorris...@gmail.com wrote:

 I've been struggling with this for 2 days now.

 I reinstalled radiant (which works fine) and radiant-forms-extensions.
 Then I ran
 rake db:migrate
 rake db:migrate:extensions
 rake radiant:extensions:forms:migrate
  (which complained  Don't know how to build task
 'radiant:extensions:forms:migrate')
 rake radiant:extensions:forms:update
  (which complained Don't know how to build task
 'radiant:extensions:forms:update')

 Stopped and started radiant; still no Forms tab appears.

 I've just tried so many things, googled lots of error log messages,
 geez.  Meta-problem: why the heck doesn't it JUST WORK?
 (Sorry, just have to vent a little.)

 So last resort before giving up.  Any advice please?


 Next time, don't wait 2 days to ask for help.

 Are there any errors in the server log?
 Can you verify that the extension is in vendor/extensions/forms and not
 vendor/extensions/radiant-forms-extension
 And can you verify that it is not an empty directory?



 --
 Jim Gay
 Saturn Flyer LLC
 http://www.saturnflyer.com
 571-403-0338




-- 
Lindsay Morris




-- 
Lindsay Morris


[Radiant] Paperclipped (assets) and s3 path problem

2010-08-09 Thread cmyk
I've got an issue with the paperclipped extension and s3.
I set it to use S3 and it works, but the path it saves the images to
(on the s3 server) looks exactly like the path on my system (/Users/
cmyk/Sites/etc...)
And when I upload something on heroku, the path looks like disk1/home/
slugs etc..
Any ideas on how to fix that?


Re: [Radiant] Drag order extension with Radiant 0.9.1

2010-08-09 Thread Wes Gamble

 Marshal,

I am seeing strange behavior in my installation of the drag extension as 
well.


Wes

On 8/8/10 1:43 PM, Marshal Linfoot wrote:
Hi Wes. I have this one installed: 
http://github.com/squaretalent/radiant-drag-extension


It works, but with some odd behaviour that I can work around. For 
example, if I have the following pages:


   Events
  event1
  event3
  event2
  event4

and I drag event3 down between event2 and event4, I will often end up 
with something like


   Events
 event4
 event1
 event2
 event3

or some other, seemingly random ordering. Usually I can get around it 
by creating a temporary/dummy page, getting the ordering right with 
the dummy page out of place, and then deleting the dummy page. I 
suspect my problem is drag not playing well with some other extension 
I have installed (don't have the skill set to debug it).


The other problem is if I try to make a COPY of a page using drag, and 
the page to be copied has custom page parts from the 
PageFactory/PageParts extensions, the custom page parts are not copied 
correctly. Saw this also when I was testing the CustomFields extension.


Hope this helps.
--
marshal


Re: [Radiant] Drag order extension with Radiant 0.9.1

2010-08-09 Thread Marshal Linfoot
Anna, thank you. I'll be happy to test your changes.

On Mon, Aug 9, 2010 at 10:12 PM, banane ban...@gmail.com wrote:

 I'll try to rework mine. I got a pull request a few weeks ago from someone
 who'd merged branches.
 anna

 --
marshal


Re: [Radiant] Drag order extension with Radiant 0.9.1

2010-08-09 Thread banane
OK this seems to work for me. Master branch,
http://github.com/banane/radiant-drag-order/

On Mon, Aug 9, 2010 at 7:49 PM, Wes Gamble we...@att.net wrote:

  FWIW,

 I've definitely verified that the position column on the Page model is
 being respected in the admin. page display.  When a parent page's children
 are requested using Page#children, the position value is also respected (it
 appears that if two pages have the same position value, then the primary key
 order prevails).  I can move pages around in the list at will by
 manipulating the position value directly.

 Sometimes, for whatever reason, the position columns of a set of pages at
 the same level are not being updated correctly.  I haven't been able to
 figure out if it has to do with the direction in which the items are being
 moved or not.

 I see drag/drop failing occasionally with an error of the type:

   SELECT * FROM pages WHERE (slug LIKE ''internal-political-issue'%%') AND 
 (pages.parent_id = 1)

 which is again some silly syntax issue where there are too many quotes in
 the WHERE clause.

 I suspect maybe two things are going on:

 1) Whatever causes the SQL syntax error

 2) When an error occurs, a proper rollback of the original order may not
 be done (which is how you might end up with duplicated position values)

 Wes


 On 8/9/10 9:21 PM, Marshal Linfoot wrote:

 Anna, thank you. I'll be happy to test your changes.

 On Mon, Aug 9, 2010 at 10:12 PM, banane ban...@gmail.com wrote:

 I'll try to rework mine. I got a pull request a few weeks ago from someone
 who'd merged branches.
 anna

  --
 marshal