[Rails] Re: RoR with integrated windows authentication
Hey Alpha, As "radhames brito" pointed out, you can use a plug-in for LDAP authentication with Devise (a popular authentication system) to facilitate authentication with ActiveDirectory. I had to build a few systems like this a couple years ago, and at the time all I had available was a simple LDAP gem to facilitate communication. >From an overview perspective, it's pretty simple. Your web application can accept username/password parameters, then ask your AD server to authenticate that user via a standard LDAP connection using a gem like "ruby-net-ldap". The server responds, and your application can act accordingly. Implementation-wise, AD is Microsoft's LDAP system; you can interface with it pretty-much just like any other LDAP server, though I believe it has some unique qualities that make it a little bit "special". One tool I found absolutely invaluable when doing this before was Apache's LDAP tool, "Apache Directory Studio" - http://directory.apache.org/. It can form a connection to your AD server and let you discover all the "hidden" properties of tree nodes that Microsoft's built-in AD browser won't tell you. You may need that when figuring out which tree to use when authenticating users (depending on how your LDAP setup works) or other potentially valuable items stored therein. Unfortunately, I can't comment on how Devise does LDAP authentication as I haven't used it before (I don't think it existed at the time I had to build the equivalent a few years back). I'd recommend trying to use it first, and if you can't quite get that working, you can go "deep dive" and brew your own. Generally speaking though, using a standardized and properly maintained authentication system like Devise is a better way to go, so I'd recommend that approach starting out. I hope this helps you at least get an idea of where to start. Good luck! On Mar 27, 9:19 pm, Alpha Blue wrote: > Hi All, > > I'm taking on a re-write project for a ticketing system solution and my > company uses ASP.net with IIS. I want to build the new ticketing system > with Rails as I believe it to be a much cleaner long term solution, and > add to that I don't care for ASP and how it handles sessions. > > I've searched long and hard and a lot of posts and information out there > are pretty out dated in terms of NTLM or (integrated windows > authentication) as it's now called working with Rails. > > I will not be using IIS thankfully and would rather go an Apache route > with a mod to handle initial authentication through windows active > directory. We use IE8 and it should pass through perfectly. > > But, I need to know what I'm getting into and would like to look over as > many resources as possible before I fully commit to this project. So, > with that said, what resources am I going to need to work on this? > > I'm fully familiar with Ruby 1.8.7, 1.9.1, and 1.9.2 and Rails version > 2.x and 3.x, including rails 3.1. I normally use apache + passenger + > rails when going to production on a linux server. > > How would you approach this and what pieces would you opt for, given > this scenario? And, any updated links on where to go with this? > > Thanks for your time. > > -- > Posted viahttp://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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: Sending sms via rails
Well, you may need to "brew your own". The most likely issue would probably be that you don't have the information for an e-mail to SMS gateway for your cell phone provider. You'd need to get that information from them. This isn't so much a "what should I use instead of sms_fu?" kind of question, it's more a question of, "how do I properly implement this?" It's also possible that your provider doesn't support e-mail to SMS for some reason. I can't see any reason they wouldn't or couldn't, but then again, I've never been to India :) The only other options I can list off the top of my head would be a third party provider that you pay for API access. There are companies - at least here in the US, probably in India as well - who act as intermediaries to send SMS messages between different providers. For example, say you're on AT&T (a GSM network) and I'm on Sprint (a CDMA network). I send you a text message. It goes from my phone, to Sprint, _to the intermediary in question - whoever they are_ - to AT&T and finally to your phone. Some of these providers may have paid APIs that you can license to send the text message directly to their servers/systems, but that usually tends to be a fairly pricey option and is usually reserved for companies who need to send large volumes of SMS messages. Most of the time, these kinds of services are language agnostic, so you could build it in Ruby, PHP, Perl, Python, Scala, VB.NET, C#, whatever. I'd start by calling up your phone company and asking, "how do I send a text message by e-mail?". That should get you started. Good luck! On Mar 18, 2:57 am, seeni khan wrote: > Hey Fallen phoenix, > Is there any other option available in rails to send sms? -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: Sending sms via rails
Hey Seeni, The first thing that comes to mind is, does sms_fu include support for your carrier there in India? Its GitHub documentation states that the "to" phone number must be exactly 10 digits long (without any non- digit characters). I'm not sure what phone numbers in India look like, but that could be one place to start. Secondly, sms_fu appears to rely on simply sending an e-mail to @. It just happens to have a list of known carrier e-mail to SMS domains. Behind the scenes, all it's doing is sending an e-mail to that carrier (or at least that's my understanding). Because it's relying on e-mail, what's your action mailer configuration setting for development mode? Current versions of Rails usually set the perform_deliveries option to false for development and test environments, meaning that any e-mail that goes through ActionMailer will just be printed out to the logfile, instead of actually sent. If you're in development or test mode without having set that option to true (config/environments/development.rb or test.rb), it could be that the system isn't actually sending the e- mail to your carrier. A couple other points to possibly think through: - Does the carrier support messages in the language (and alphabet - US-ASCII, UTF-8 or Hindi) you're using? - Are you sending an HTML-formatted e-mail, or just plain text? One other thing to look at would be asking the carrier in question what their SMS-to-e-mail domain is. For example, here in the US, with Sprint it's @messaging.sprintpcs.com. If the configuration for sms_fu doesn't have a known sms-to-email domain name for your carrier, you'll probably need to add it. Good luck to you Seeni! I hope you get it figured out soon. On Mar 17, 11:34 pm, seeni khan wrote: > Hi all, > Im trying to send sms via rails but it is not reached my mobile > because in sms_fu.yml file there is no carrier is set for India. How can i > set the carrier for send sms to India. Please anyone help me. I am using > sms_fu gem for send sms. > > -- > > *Thanks & Regards,* > > *RAFI,* > > ***In Every moment, thank God.* -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: ror hosting providers?
The major providers I know of off the top of my head are Heroku (www.heroku.com), EngineYard (www.engineyard.com), and Rails Machine (www.railsmachine.com). I believe both Heroku and EngineYard provide "front-ends" to Amazon EC2 (in other words, what they provide is an access layer to EC2 specifically geared toward Rails apps, to make them easier to deploy and administer). Lots of rails applications that I know of are hosted directly on Amazon EC2 or Rackspace Cloud Servers, which are just straight-up virtual servers running your choice of operating system. This approach gains you a lot of flexibility, but it can be a pain to administer several different apps on several different servers - keeping up with patches, making sure that the system continues to work correctly post-patch, etc. can be a full time job in and of itself! That's why providers like Heroku are really useful. If you're looking at virtual hosting, you can look at Amazon EC2, Rackspace Cloud, Linode (www.linode.com), or Slicehost (www.slicehost.com). There are lots of companies in the VPS marketspace, but those are some options I can give you off the top of my head. On Dec 16, 12:31 am, ratnamraj varasala wrote: > 50MB is trailer you want host just purchase fromhttp://heroku.com/ > > On Thu, Dec 16, 2010 at 12:21 PM, venkata reddy > wrote: > > > > > > > > > i know that heroku provides free hosting for rails application with > > size less than 50MB, and also the domain name format is > > x.heroku.com > > > but heroku provides the official hosting? > > > On Dec 16, 11:38 am, ratnamraj varasala wrote: > > > heroku > > > > On Thu, Dec 16, 2010 at 11:44 AM, venkata reddy > > > wrote: > > > > > can anybody tell me some of the best ror web applications hosting > > > > providers? > > > > > -- > > > > 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-talk@googlegroups.com > > . > > > > To unsubscribe from this group, send email to > > > > rubyonrails-talk+unsubscr...@googlegroups.com > > > e...@googlegroups.com> > e...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > > 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 to > > rubyonrails-talk+unsubscr...@googlegroups.com > e...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: NoMethodError
Hi Juan, In the new action in your controller, do you have it creating an actual @appointment object? For example: class AppointmentsController < ApplicationController # ... other stuff here, before filters, etc. def new @appointment = Appointment.new # do you have this? end end My theory is that when rendering the view, it's looking for the @appointment instance variable which doesn't exist yet because your new action wasn't creating it. Double check that - good luck! On Nov 24, 2:51 pm, Juan Gomez wrote: > hey, > > I am making an appointments page. It is not associated with any other > model. The model validations, migrations, controllers, views, and form > structure are in place but for some reason i keep getting: > > NoMethodError in Appointments#new > > Showing /Users/juangomez/Documents/Aptana Studio 3 Workspace/universal/ > app/views/appointments/new.html.erb where line #3 raised: > > undefined method `generated_methods?' for # > Extracted source (around line #3): > > 1: > 2: Create An Appointment > 3: <%= form_for @appointment do |f| %> > 4: <%= render :partial => "form", :object => f %> > 5: <%= f.submit "Create" %> > 6: <% end %> > > Please help me! -- 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 to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: How to map Excel sheet data to my applicatioin in ruby.
Hey there chowdary, You can try the spreadsheet gem. I've used it myself in a couple projects "back in the day" and it can read and write Excel spreadsheets, and help you work with the data therein a bit more easily. http://rubygems.org/gems/spreadsheet The basic guide should be enough to hopefully get you up and running: http://spreadsheet.rubyforge.org/GUIDE_txt.html Good luck! On Nov 25, 1:24 am, chowdary wrote: > Excel sheet having : > Firstname Lastname > venkat patchava > > How to map Excel sheet data to my applicatioin in ruby. > Firstname : venkat > Lastname : patchava > > Plaase help me in ASAP. -- 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 to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.