|
Archive for the 'Ruby' category
If you’re using the very awesome HerokuGarden (or Heroku, for that matter) and are wanting to use the amazing RestfulX with it on an existing application there are a couple of not-exactly-obvious additional steps one needs to take in order to enable the HerokuGarden + RestfulX joy:
herokugarden create your_app_name
herokugarden clone your_app_name
cd your_app_name
mkdir lib
mkdir lib/tasks
mkdir vendor
- edit
config/heroku.yml to hide the heroku toolbar (otherwise the heroku toolbar covers the action buttons. One could also adjust one’s Flex app to be shorter, I s’pose.)
My heroku.yml, for example, looks like this:
toolbar_collaborators: false
toolbar_public: false
It would be sweet to be able to run rake gems:unpack at this point but I wasn’t able to get that to work properly so I’ve been using the following workaround until I can figure that out (and check it into github):
Create an entirely separate rails app on your local machine:
cd ..
rails temporary_application
cd temporary_application
- add
config.gem 'restfulx' to environment.rb
rake gems:unpack
Copy the entire vendor directory into your HerokuGarden app: (OSX/linux version)
cp -R ./vendor/* ../your_app_name/vendor
Delete the temporary application:
cd ..
rm -rf temporary_application
Finish configuring your app:
cd your_app_name
- add
config.gem 'restfulx' to environment.rb
script/generate rx_config
git add .
git commit -m "Added the RestfulX sekrit sauce"
git push
Resume down the standard RestfulX path of development joy:
touch db/model.yml
- edit
model.yml to your liking
script/generate rx_yaml_scaffold
rake db:refresh
rake rx:flex:build
git add .
git commit -m "Created awesome RestfulX sample application"
git push
If you’re aware of a better way to do this then please let me know so I can update these directions.
Categories: Flex, Heroku, HerokuGarden, RestfulX, Ruby, Ruby on Rails
No Comments »
The gem command makes it trivially easy to search for gems.
To search for a gem installed locally:
gem search <gem name or search term>
To search for a gem from the vast number of gems which exist:
gem search -r <gem name or search term>
or:
gem search --remote <gem name or search term>
To search for a gem from the vast number of gems which exist and also show descriptions:
gem search -d -r <gem name or search term>
or:
gem search --details --remote <gem name or search term>
Important Note:
The stuff in brackets above is my blog-style for variables… the brackets aren’t part of the syntax. Sorry if that’s confusing but I’m not sure how else to indicate variables without finding an awesome code-sample-friendly CSS stylesheet.
Categories: Ruby
No Comments »
These are some interesting things I want to investigate in more depth, so I’m posting links for revisiting later.
Flex Stuff:
- Flex MDI: Simplifies multiple-window(document) interfaces. Way cool.
- dpunit: Flex Unit and Integration Testing, apparently different from FlexUnit.
- FlexUnit: Flex Unit Testing
- Spectra: A cool Flex Newsreader written by Microsoft. (via Bruce Eckel’s blog)
- Degrafa: A Declarative Graphics Framework for Flex.
Rails Stuff:
Categories: Cool Stuff, Flex, Rails, Ruby
1 Comment »
|
|