php code works with this url but the rubyCAS-Client gem's `validate_service_ticket()'
seems to call an SSL Validation on this url which returns an error message.
'OpenSSL::SSL::SSLError in CassersController#index' ||'SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed'
---enviroment.rb--...
I find myself doing this a lot:
script/generate migration my_new_migration
.. then select & copy the generated filename, then paste it into vi to actually write the migration.
Is there any way to do this in one step? i.e. when the script/generate migration runs, it creates the file the automatically opens that file in an editor?
(...
Is there anyone out there who has an idea of how to incorporate Hobo as an admin subsite on a existing rails app running on authlogic.
I've been following this tutorial, but it not working.
Any help or Tutorial link please!
Some erorr code for anyone who fancies a crack:
~/dev/copy> ./script/server
=> Booting Mongrel
=> Rails 2.3.4 a...
Hello everyone.
Please don't bit my for my misunderstanding.
The sessions are very new for me, and i have some problems.
Okay i read many information about sessions and especially rails session. But this don't give me right imagine about sessions.
Did i understand right, when users send request to server (get) -> Server create a new se...
In MVC web development frameworks such as Ruby on Rails, Django, and CakePHP, HTTP requests are routed to controllers, which fetch objects which are usually persisted to a backend database store. These objects represent things like users, blog posts, etc., and often contain logic within their methods for permissions, fetching and/or muta...
We're convincing our Products officer that we want to use JRuby on Rails, and we're having a hard time coming up with some statistics which show that:
Coding time is less using Rails vs. say Struts or Zend Framework or what have you.
Ruby (and JRuby in particular) performance isn't horrible (anymore).
Rails performance isn't bad either...
Hi all,
I tried to use paperclip plugin on rails 3-beta 3. I installed this plugin successfully, but when I use the following script to generate:
rails generate paperclip xxx xxx
it said generator not found. Any ideas? Thanks.
...
Hi,
I am very new to ruby on rails. I've installed a complicated ruby on rails project via github clone and bundle install, and I was making minor changes to it until it reaches a point whereby it is not stable anymore, sass was throwing strange exceptions, so did other ruby gems. For a rails project, is there a way to clean up the proje...
I'm trying to accomplish something similar to Wikipedia's History history page, dynamically disabling radio buttons in a series.
Ie... if #4 in group two is selected, then 1-4 of group one are disabled, etc.
I know how to disable them individually or as a group, but I'm not sure how to do it in a series of say 1-4:
Individually:
$(...
I am trying to save a model with its dependency models being saved.
Model1
has_many :model2, :autosave => true
Model2
belongs_to :model1
has_many :model3, :autosave => true
Model3
belongs_to :model2
I want to save Model1, and have Model2 and 3 save as well. I tried this without and with the autosave feature. What win...
I'm considering remaking my blog(currently in PHP, but <100 lines of non-layout code) in Ruby on Rails just for the fun of it. I want to make another project in Rails, but I should learn Rails(more than hello world) before I go to try to create a full project.
Another thing I want to do while remaking my blog is to at least figure out ...
Wordpress themes are beautiful!
Is there any guideline to use Wordpress themes in a rails app? Even better, are there rails app templates which can use the Wordpress themes already?
Thanks!
...
I have developed a blog application of sorts that I am trying to allow other users to take advantage of (for free and mostly for family). I wondering if the authentication I have set up will allow for such a thing. Here is the scenario.
Currently the application allows for users to sign up for an account and when they do so they can cr...
I have used Jquery -UI accordion plugin for menu (since it looks neat) and Jquery -grid rails plugin for my data. I have a vertical menu and data on the right side, however the style of the menu disappears and only grid is showing up properly. Anyone faced this issue before ?
...
Ok:
User
attr_accessible :name, :email, :email_confirmation
validates_presence_of :email_confirmation if :email_changed?
What happens in the following situation:
u = User.find 1
u.name = 'Fonzi'
u.name_changed? # => true
u.email_changed? # => false
u.valid? # => false : email_confirmation is required
Basically, if I change...
Can anyone comment on which is more scalable between RoR and PHP? I have heard that RoR is less scalable than PHP since RoR has a little more overhead with its MVC framework while PHP is more low level and lighter. This is a bit vague - can anyone explain better?
...
In the js file of the page, inside $(document).ready(function() {}) I have
$(".school a").live("click", function (e){
e.preventDefault();
....;
jsFunc(param1, param2, param3);
});
Now the div with the class school has tags generated by rails link_to_remote with :url, :action, :before, :html.
On clicking on this link it does...
I am trying to learn rails and haven't used it in the last few weeks but today when I try to run any rails commands such as
- 'rails -v'
- 'script/server'
I get not have reinstalled ruby but the didn't don't have a clue what could be wrong
Am on a brand new Macbook Pro
Jeremy-Geross-MacBook-Pro:~ Jeremy$ rails -v
/Library/Ruby/Si...
I have an application which allow user upload documents to Scribd. I tried to use scribd_fu in Rails. An error occurred when the controller try to save the model.
NoMethodError in DocumentsController#processupload
private method `gsub' called for nil:NilClass
here is the related controller
def processupload
@document = Document.new...
I have a HTTPService in Flash Builder 4, that is defined as follows:
<s:HTTPService id="getUserDetails" url="http://localhost:3000/users/getDetails" method="GET"/>
It gets called as follows:
getUserDetails.send({'user[username]': calleeInput.text});
Here is a screenshot of the network monitor, showing that the parameter is being se...