[Rails] Combining Redmine with another Rails application

2011-03-21 Thread Ahmed Abdelsalam
Hi, I'd like to add redmine as project management application to be a part of my rails application. Is there anyway to do this instead of manual merging of both codes? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

RE: [Rails] gem install of rails-3.0.3 on ruby-1.8.7-p330 gives rdoc error

2010-12-29 Thread Ahmed Abdelsalam
As you are using Rails 3, you have a good option after installing rails is to run bundle install command from your application, this will install all required gems for you. Another note, I faced many cases in Rails 3 that installation of gems fail, and after some researching, the solutions was to

[Rails] Problem with Jruby xslt

2010-12-29 Thread Ahmed Abdelsalam
or directory (LoadError) Any help? Regards, Ahmed Abdelsalam -- 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-t...@googlegroups.com. To unsubscribe from this group, send email

[Rails] Read data in JSON format

2010-09-13 Thread Ahmed Abdelsalam
Hi, I have some data stored in file in JSON format. I'd like to read these data and store them into database in rail application. Is there any plugin to perform this? or direct code? Should I convert this data to csv or other format? Thanks, Ahmed -- Posted via http://www.ruby-forum.com/. --

[Rails] update form text_field on collection_select selection

2010-08-30 Thread Ahmed Abdelsalam
I have form and a collection_select control. I would like to update form fields (text box) when I select an item from the collection_select box. It's like selecting template from the collection_select and the template automatically loads to text boxes. Any help? -- Posted via

[Rails] Ruby CAS Server on Heroku

2010-06-19 Thread Ahmed Abdelsalam
Hi, I'm implementing a single sign-on solution based on rubycas-server and rubycas-client plugins. I'm also deploying a demo for my application on heroku. Is it possible to deploy the CAS server on Heroku and connect my application (which is also on heroku) with such CAS server? Ahmed --

[Rails] Drop down menu and ajax calls

2010-05-02 Thread Ahmed Abdelsalam
Hi, I have a drop down menu that contains a set of menu items. Each menu item is planned to make ajax call to change the content of the page when it's clicked. I used link_to_remote successfully to make the ajax call and update the specific div However, After clicking the menu item, the menu

[Rails] Export contents to Word DOC file

2010-04-11 Thread Ahmed Abdelsalam
Hi, I want to export some contents from my rails application to MS WORD .doc file Any help? -- 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

[Rails] Scaffolding for nested models

2010-03-08 Thread Ahmed Abdelsalam
Hi, I'm developing application that contains many nested models. Can I use scaffolding command to generate the application nested models instead of manually creating the complex nested models? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

[Rails] DateTime format

2010-02-18 Thread Ahmed Abdelsalam
Hello, I have an application which stores date in DateTime format, and displays it as long format, for example: November, 4, 2009 I want to extract month name and year only from the DateTime format to display it as: November 2009. Any help? -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: DateTime format

2010-02-18 Thread Ahmed Abdelsalam
shyam mohan wrote: use this show_time = Time.now.strftime(%B %Y) Regards, Shyam +91-971-618-9650 sh...@crypsis.net Thank you very much. It works. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Loading Seed Data from MySQL exported file

2010-01-18 Thread Ahmed Abdelsalam
Aleksey Gureiev wrote: I believe, converting of data to the seed.rb format is not an option? If so, the easiest way would be to write a rake task to use mysql or sqlite3 to upload your data. Here's the sample that I put together quickly: http://gist.github.com/279918 It replaces the standard

[Rails] Re: Loading Seed Data from MySQL exported file

2010-01-18 Thread Ahmed Abdelsalam
Billee D. wrote: Hi Ahmed, I think you want to create fixtures for your seed data: http://api.rubyonrails.org/classes/Fixtures.html Fixtures can even be scoped to an environment so you can have distinct seed data for Development, Testing and Production. But, recent versions of Rails use

[Rails] Loading Seed Data from MySQL exported file

2010-01-17 Thread Ahmed Abdelsalam
Hello, I'm developing an application, and I want to automatically load seed data into database. The seed data exists in a SQL file (exported from MySQL database). I want the application to load such data when I make db:reset or db:migrate:reset or db:seed. Any help? -- Posted via

[Rails] resizing cells in Spreadsheet/Excel

2010-01-04 Thread Ahmed Abdelsalam
Hi, I'm working on an application that generates excel sheet. I would like resize cells so that it contains long contents. I'm using spreadsheet/excel. How can I do this? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Problem with downloading a generated Excel sheet

2010-01-04 Thread Ahmed Abdelsalam
Thank you for your response, It helped me 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-t...@googlegroups.com. To unsubscribe from this

[Rails] Problem with downloading a generated Excel sheet

2010-01-03 Thread Ahmed Abdelsalam
Hello, I'm using the spreadsheet/excel gem to generate an excel sheet that I want user to be able to download it once it's generated. Please take a look on the below code: @contacts=Contact.find(:all) if @contacts.size0 file=#{Date.today}_Report.xls

[Rails] create subform within rails form

2010-01-02 Thread Ahmed Abdelsalam
Hi, I have a form for a model that have relationship to other models in my application. For example, a company and employees. When I add new employee, I should select company for which employee is working. How about if the employee works in a company that is not in my database? so I want to

[Rails] Error running Mongrel on Ruby 1.9

2009-12-30 Thread Ahmed Abdelsalam
Hi, I have a problem running Mongrel, I'm using the latest ruby 1.9 and rails 2.3.5 when I start the server (I'm using Aptana IDE), on mongrel, here is the output: C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require': 126: The specified

[Rails] Error running Mongrel on Ruby 1.9

2009-12-30 Thread Ahmed Abdelsalam
Hi, I have a problem running Mongrel, I'm using the latest ruby 1.9 and rails 2.3.5 when I start the server (I'm using Aptana IDE), on mongrel, here is the output: C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require': 126: The

[Rails] Re: I want to create text box but in run time

2008-12-16 Thread Ahmed Abdelsalam
How about creating a hidden DIV that include the text box, and make it appears programatically. Regards,... Ahmed Abdelsalam hyuan wrote: text_field_tag See: http://api.rubyonrails.com/classes/ActionView/Helpers/FormTagHelper.html On Dec 15, 12:52 pm, mahmoud_cs